Runs an executable file.
Action ID: 3
Action Category:
Open/Close Programs
The full path and filename of the program to execute.
Command line arguments that will be passed to the program.
The working directory to use for the program.
The initial run mode for the executed program. Choose from Normal, Minimized, or Maximized:
The program's interface will be sized "normally."
The program will launch with its interface minimized.
The program will launch with its interface maximized.
If checked, the setup executable will wait for the spawned process to complete execution before it continues with the setup.
Value |
Simple Message |
Verbose Message |
0 (OK) |
|
|
1 |
Error executing file. |
<<Path and filename>> |
In this example, we will launch Notepad and pass it our "Readme.txt" as a command line argument. This will cause Notepad to launch with the "Readme.txt" file open.
File to execute (path and filename): %WinDir%\Notepad.exe
Command line arguments: "%AppDir%\Readme.txt"
Working directory: %WinDir%
Run made: Normal
Wait for program to finish before
continuing: Unchecked
See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab