Setup Factory for Windows Installer

Custom Action Timing

Sequence:

The sequence that you want to run the custom action from.

Condition:

The condition that is evaluated to determine whether or not the custom action will be run or not. Leave this field empty if you do not want to place a condition on the action.

Execute

Allows you to specify where the custom action should be run relative to other actions in the sequence. This can be a tricky process as the validity of your settings will be determined by whether the action is immediate or deferred as well as which actions are before or after the custom action.

Before

If selected, the action will be inserted into the sequence before the Relative action below.

After

If selected, the action will be inserted into the sequence after the Relative action below.

Relative action:

Use for the Before and After types, this is the name of the action that the custom action is relative to. If you chose one of the execute sequences as the Sequence option, you can schedule it relative to a standard action or another custom action in the same sequence. If you chose one of the UI sequences as the Sequence option, you can schedule it relative to a standard action, another custom action, or a Dialog in the same sequence. If scheduling relative to a dialog, it must be the first dialog in its sequence as defined on the Dialogs dialog (Advanced edit mode).

On exit

If selected, the custom action will be run on exiting the installer under one of the Exit types. This option should rarely, if ever be used for scheduling custom actions. It is only included for completeness. Only use this option if you have a very specific reason to do so.

Exit type:

The exit type that the action will be run on. Choose from cancel, error, success or suspend.

Specific numeric sequence

If selected, you can specify the MSI table sequence for the action. You will need to have specific knowledge of the numeric sequencing of the table beforehand to use this option. Usually it is better and easier to use the Before or After options above.

Sequence number:

The numeric sequence number.

More Information

MSDN Online: Custom Action Execution Scheduling Options

MSDN Online: Conditional Statement Syntax

WiX Help File: Custom Element