WiseScript Package Editor Reference
256
Quick Reference
Command-Line Options
You can set command-line options when you run WiseScript Package Editor, the
installation executable, and the uninstaller executable. These are especially useful for
running an installation as part of a batch file or other automated installation system.
If you compile from the command line, compile errors generate return codes. To see the
error message associated with the return code, run the compile directly from WiseScript
Package Editor. When compile errors occur, a dialog box appears during compile with a
specific error message.
WiseScript Command-Line Options
You can apply the following command-line options to the WiseScript Package Editor
executable file, Wise32.exe. Command-line options let you compile as well as set
properties.
Examples:
z
Compiling a .WSE file while defining a compiler variable named _PATH_:
"product_installation_directory\Wise32.exe" /d_PATH_=C:\Test /c
"C:\Development\Application.wse"
z
Compiling a .WSE file while setting compiler variables defined in a text file named
Compile.txt:
“product_installation_directory\Wise32.exe” /c /d=C:\Development\Compile.txt
“C:\Development\Application.wse”
Automated build process
You can use command-line options in conjunction with other processes to create an
automated build process.
1. Enter the following command-line statement into a batch file or program that has
the ability to run command-line statements:
“product_installation_directory\Wise32.exe” /c /s “C:\Development\Application.wse”
2. Use Scheduled Tasks in Control Panel to schedule the running of the batch file.
/c file.wse
Compiles the installation script.
/c /s file.wse
Compiles the installation script silently. You can use this
option with the /d option.
/r
Opens the application in SetupCapture mode.
/u
Checks for updates on the Wise Web site.
/c /d_VAR_=value
Defines one compiler variable for this run only. Additional
compiler variables require additional /d switches. Do not put a
space between the /d and the compiler variable name.
/c /d=file.txt
Defines compiler variables from a text file for this run only.
The format for the text file is _VAR_=value, with one entry per
line. You can use the /s option with this option.