Command Reference

Execute File

Runs an executable file.

Action ID: 3
Action Category: Open/Close Programs

Settings

File to execute (path and filename)

The full path and filename of the program to execute.

Command line arguments

Command line arguments that will be passed to the program.

Working directory

The working directory to use for the program.

Run mode

The initial run mode for the executed program. Choose from Normal, Minimized, or Maximized:

Normal

The program's interface will be sized "normally."

Minimized

The program will launch with its interface minimized.

Maximized

The program will launch with its interface maximized.

Wait for program to finish running before continuing

If checked, the setup executable will wait for the spawned process to complete execution before it continues with the setup.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

Error executing file.

<<Path and filename>>

Example

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