Windows Installer Editor Reference
540
Custom Action Reference
Note
The Location tab is an alternate way to perform tasks that you normally perform in the
User Interface, Execute Immediate, or Execute Deferred sequences. You can move and
copy custom actions by using editing functions in these sequences. The main use for this
tab is to click the No Sequence option, which causes this action to not run unless an
event invokes it.
z
No Sequence
Omits the custom action from all sequences, and stores it in the CustomAction
table. If you mark this, the custom action is only invoked if you set an event to run
the custom action.
See
Launching a Custom Action from a Dialog
on page 509.
If you clear No Sequence, enter the following information:
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 441.
See also:
All Custom Actions
on page 493
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.