You can compile scripts from the command line using the console-mode compiler, ISCC.exe. Command line usage is as follows:
iscc [options] <script name>
Or to read from standard input:
iscc [options] -
As shown in the example above, filenames that include spaces must be enclosed in quotes.
Valid options are:
/O(+|-) | Enable or disable output (overrides Output) |
/O<path> | Output files to specified path (overrides OutputDir) |
/F<filename> | Specifies an output filename (overrides OutputBaseFilename) |
/S<name>=<command> | Sets a SignTool with the specified name and command (any Sign Tools configured using the Compiler IDE will be specified automatically) |
/Q | Quiet compile (print error messages only) |
/Qp | Enable quiet compile while still displaying progress |
Also see Inno Setup Preprocessor: Command Line Compiler for additional options.
ISCC will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid or an internal error occurred, or 2 if the compile failed.
Alternatively, scripts can also be compiled by the Compiler IDE from the command line. Command line usage is as follows:
compil32 /cc <script name>
As shown in the example above, filenames that include spaces must be enclosed in quotes.
Running the Compiler IDE from the command line does not suppress the normal progress display or any error messages. The Compiler IDE will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid, or 2 if the compile failed.
The Setup Script Wizard can be started from the command line. Command line usage is as follows:
compil32 /wizard <wizard name> <script name>
As shown in the example above, wizard names and filenames that include spaces must be enclosed in quotes.
Running the wizard from the command line does not suppress any error messages. The Setup Script Wizard will return an exit code of 0 if there was no error and additionally it will save the generated script file to the specified filename, 1 if the command line parameters were invalid, or 2 if the generated script file could not be saved. If the user cancelled the Setup Script Wizard, an exit code of 0 is returned and no script file is saved.