Windows Installer Editor Reference
476
Custom Action Reference
Execute Program From Installed Files
This custom action calls an .EXE file that is installed by this installation.
Tips
z
Before you add this custom action, add the file to be called to the Files page in
Installation Expert.
z
Shaded areas of MSI Script indicate restricted placement for this custom action;
because this custom action calls an installed file, it must run after files are installed.
Usage
Double-click the custom action and complete the Details tab:
z
Custom Action Name
Enter a unique name that begins with a letter or underscore. It can contain numbers
and periods. It must not match the name of any Windows Installer standard action.
See Standard Actions Reference in the Windows Installer SDK Help.
z
Executable File
Specify the .EXE file to run. It must have already been added to this installation.
z
Command Line
(Optional) Enter command-line options to pass to the .EXE file.
On the Properties tab, In-Script Options is unavailable for this custom action.
See also:
Guidelines for Custom Action Location
on page 454
Using the Custom Action Properties Tab
on page 490
Using the Custom Action Location Tab
on page 488
Custom Action Type 18 in the Windows Installer SDK Help
Execute Program From Path
This custom action calls an .EXE file whose path is specified by the value of a property. It
is useful if the path to the .EXE file is dependent on end user input or system
configuration.
To use this option, you must provide a mechanism for setting a property with the value
of the .EXE path. Example: You could use the Set Property custom action and set a path
based on the operating system. Or you could use the System Search page to set a
property to the path of a found file.
Usage
Double-click the custom action and complete the Details tab:
z
Custom Action Name
Enter a unique name that begins with a letter or underscore. It can contain numbers
and periods. It must not match the name of any Windows Installer standard action.
See Standard Actions Reference in the Windows Installer SDK Help.
z
Property
Specify a property that will store the path and name of the .EXE. Select a property
or type a new property name.