Windows Installer Editor Reference
443
Using MSI Script
z
Add a custom action outside a sequence
See
Adding a Custom Action Outside a Sequence
.
z
Add a custom action to multiple sequences
See
Adding a Custom Action to Multiple Sequences
on page 443.
z
Quickly review and edit custom actions
If your custom actions are scattered, you can quickly review and edit them without
scanning through each sequence to find them.
Adding a Custom Action Outside a Sequence
You can add a custom action that is not invoked unless you provide a mechanism to call
it during installation, such as creating an event that triggers the custom action.
Example: You might want a custom action to run if an end user clicks a button on a
dialog box during installation.
See
Launching a Custom Action from a Dialog
on page 458.
To add a custom action outside a sequence
1. Select MSI Script.
2. From Installation Modes, select All Custom Actions.
This displays a list of all custom actions in this installation.
3. In the Actions list, double-click the action.
4. Complete the Details and Properties tabs as you would normally.
If the action does not have these tabs, then you cannot add it outside a sequence.
5. On the Location tab, mark No Sequence.
This tab is only available in the All Custom Actions mode.
6. Click OK.
Adding a Custom Action to Multiple Sequences
When you copy and paste an action between sequences, an entirely new copy of that
custom action is stored in the installation database. To avoid this duplication and
possible use of extra disk space, you can assign an action to multiple sequences.
To add a custom action to multiple sequences
1. Select MSI Script.
2. From Installation Modes, select All Custom Actions.
This displays a list of all custom actions in this installation.
3. In the Actions list, double-click the action.
4. Complete the Details and Properties tabs as you would normally.
If the action does not have these tabs, then you cannot add it to multiple
sequences.
5. On the Location tab, clear No Sequence.
This tab provides another way to perform tasks that you normally perform in the
User Interface, Execute Immediate, or Execute Deferred sequences.