Exec |
Top Previous Next |
The Exec command allows you to run any application that can be run from the command line from within the script. Examples of programs that you might want to run include protection software such as .Net Reactor, install builders like InnoSetup, and so on.
Command Syntax
Exec:[ExecutablePathAndFileName],[CommandLineArguments]
The colon after the command is compulsory. The comma after the executable path is only compulsory where command line arguments are specified. The Exec command itself is not case sensitive, but parameters may be depending on the program, operating system, and locale.
Parameters:
ExecutablePathAndFileName: The fully qualified path and file name identifying the executable file to be run CommandLineArguments: Any arguments to the command line that may be required.
The ExecutablePathAndFileName parameter is compulsory. The CommandLineArguments parameter may or may not be required depending upon the requirements of the application being run. If any required parameter is missing or invalid an error will be thrown. The parameters must be surrounded by quotation marks if one or more spaces are included. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.
Example:
Exec:"%%IsccRoot%%\ISCC.exe","%%ScriptRoot%%\myappinstaller.iss"
See Also: Run Conditional DeleteFile MoveFile RenameFile |