Guidelines For Custom Action Location - Symantec WINDOWS INSTALLER EDITOR 7.0 SP2 - REFERENCE FOR WISE INSTALLATION STUDIO V1.0 Installation Manual

Table of Contents

Advertisement

Guidelines for Custom Action Location

Windows Installer Editor Reference
General
Place the custom action as high in the sequence as possible where it executes
properly. If it doesn't execute properly when you test it, keep moving it lower in the
sequence until it works.
If the custom action uses information that's gathered during the User Interface
sequence, place it after the actions that gather the information you need.
If the installation is run silently, items in the User Interface sequence do not
execute.
Note
The User Account Control (UAC) that was introduced with Windows Vista affects the
execution of custom actions that access protected areas on the destination computer.
You might need to elevate part or all of the installation to prevent the failure of such
custom actions.
See
About UAC Elevation of Windows Installer Installations
Correct Sequence
If the action does this
Gathers input from an end user
Needs to change properties
Is an Install MSI custom action
Is to be executed sometime during the
installation of files
Makes a change to the system
Depends on a previous action
Requires elevated privileges to run
on page 200.
Place it in this sequence
User Interface
User Interface or Execute Immediate
Execute Immediate
Execute Immediate or Execute Deferred
Place it between the InstallInitialize and
InstallFinalize actions, near the InstallFiles
action. The InstallFiles action installs files
during deferred mode.
Execute Deferred
Execute Deferred
Windows Installer does not perform the
action when it runs in Immediate mode. If
a custom action depends on a change to
the system, and the change has not yet
been made, the custom action fails.
Execute Deferred
Actions run in Deferred mode can be run
under the system context. See the
description of the In-Script Options field
in
Using the Custom Action Properties Tab
on page 542.
Using MSI Script
505

Advertisement

Table of Contents
loading

This manual is also suitable for:

Windows installer editor 7.0 sp2

Table of Contents