search cancel

What are the command line parameters available for WiseScript?


Article ID: 180620


Updated On:


Symantec Products




What are the command line parameters available for Wisescript?

You can run Wise Installation .exe with command line options to automate many of the tasks you would normally do in the User Interface. The list of options is as follows.

  • /c file.wse: Creates executable file from wise script.
  • /r: Opens Wise in SetupCapture window.
  • /u: Runs the upgrade wizard that checks for any upgrades online.
  • /d CompVar=Value: Defines a single compiler variable in Enterprise Edition. Multiple definitions require multiple /d.
  • /d=filename: Uses filename to define compiler variables. Each line in file is CompVar=Value.

    Example: installbuilder.exe /c /d _MYVAR_="Test" c:\my\source\files\setup.wse

Wise Installations:

  • /T: Test mode.
  • /X pathname: Extracts files into pathname.
  • /Z pathname: Extracts files into pathname and reboots.
  • /S: Silent install.
  • /M: Prompts for windows, system, temp directories.
  • /M=filename: Specifies a value file similar to /d above, but for standard variables (see note below).
  • /M1: Same as /m plus it prompts before any file that is self-registered.
  • /M2: Reserved for internal use by Wise during debugger sessions.

Example: setup.exe /T


  • /Z: Remove empty directories, including one with unwise itself in it.
  • /A: Automatic mode, no user choices other than cancel.
  • /S: Silent mode, automatic mode with no user choices.
  • /R: Rollback mode, selects option to rollback on uninstall.
  • /U: Like automatic mode but gives all choices other than custom/automatic title window title can be at the end of the command line

    Example: unwise.exe /S c:\my\program\directory\install.log

Note: The values file is a simple text file with variables listed, one per line, in VARIABLE="VALUE" format. If the variable is found in the values file, the specified value is used; otherwise, its value is unchanged. The file containing the variables can be up to 32 KB.