Windows Installer Editor Reference
488
Custom Action Reference
Terminate Installation
This custom action terminates the installation and displays a message explaining the
termination. Typically, you would place this custom action within a conditional block,
which begins with an If Statement.
See
If Statement
on page 477.
Tips
z
This custom action has restrictions on its placement, indicated by shaded areas in
the Installation Sequence.
z
The Properties tab is unavailable for this custom action.
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
Termination Message
Enter a message to explain to the end user why the installation terminated. Use
plain text, formatted text strings, or enter an integer that is indexed to an entry in
the error table.
See also:
Formatted in the Windows Installer SDK Help
Guidelines for Custom Action Location
on page 454
Custom Action Type 19 in the Windows Installer SDK Help
Using the Custom Action Location Tab
The Location tab appears for custom actions only if you are working in the All Custom
Actions installation mode. The All Custom Actions installation mode lists all the
custom actions that are part of this installation, which are stored in the CustomAction
table.
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 458.
If you clear No Sequence, enter the following information: