Windows Installer Editor Reference
489
Custom Action Reference
z
Sequence
Select a sequence to which to add this custom action. The options here correspond
to the sequences available with each of the three installation modes.
z
Location list box
This displays all the custom actions that are part of this installation. Click on an
action in the list box and click one of the following buttons:
Click Add to add the custom action to the sequence below the action you
selected.
Click Remove to remove it from the sequence.
Click Move Up and Move Down to specify where in the sequence the custom
action is stored.
z
Condition
For this action to run only if a certain condition is true, enter a condition. In the User
Interface, Execute Immediate, and Execute Deferred sequences, the condition you
enter is displayed as an If Statement preceding the custom action. To use the
Condition Builder to create a syntactically correct Windows Installer condition, click
Build.
See
Creating Conditions With Condition Builder
on page 391.
See also:
All Custom Actions
on page 442
Using the Custom Action Location Tab for Merge
Modules
The merge module version of the Location tab only appears for custom actions if you are
working in a merge module (.WSM or .MSM file). It is a different version of the Location
tab than the one that displays in a standard installation (.WSI or .MSI file). Use this tab
to set the location for a custom action in a merge module.
Note
When you add a custom action to a merge module, you’ll notice that the Custom
Action Name field automatically contains the GUID of the merge module. You should
leave the GUID as part of the custom action name to ensure adherence to Windows
Installer guidelines for naming custom actions in merge modules.
Because a merge module is merged into a standard installation, you must specify where
the custom action should be merged into the action sequence of the standard
installation. To specify where this custom action is merged into the main action
sequence, set the following options:
z
No Sequence
Clear this to add this action to an action sequence. If the action is not in an action
sequence, it is never executed.
If you clear the No Sequence, enter the following information: