Sequence Table Detailed Example
Here is an example of a sequence table.
|MaintenanceDialog||Installed AND NOT Resume||1000|
|MyCustomAction||$MyComponent > 2||1500|
The following actions in this sequence table are defined by the installer and are examples of standard actions:
The remaining entries in the Action field are foreign keys into the Dialog table. They specify the names of dialog boxes that will displayed if the condition field evaluates to True.
The Condition column causes the installer to skip the action if the property or expression in this field is False. The Installed property and the RESUME property are example of properties that are set by the installer. The Installed property is set to true if the product is already installed and the RESUME property is set if resuming a suspended installation. The CCP_TEST and the NOT_CCP_SUCCESS properties are examples of properties that can be set at the command line by the user installing the application.
All actions run in sequence with the following conditional steps:
- The CPPSearch is run only if CCP_TEST is set.
- CCPDialog is run only if NOT_CCP_SUCCESS is set.
- MaintenanceDialog is run only if this product is already installed and if this is not an installation that is being resume after being suspended.
- MyCustomAction is run only if the expression in the Condition column is True. The expression $MyComponent > 2 refers to the action state of the component called MyComponent. This condition indicates that MyCustomAction should only be run if MyComponent is set to be installed. For more information on Action states and Selection states, see the FeatureRequestState property, the Feature table, and the InstallFiles action.