Sequence Table Detailed Example

Here is an example of a sequence table.

Action Condition Sequence
LaunchConditions  
AppSearch 200
CCPSearch CCP_TEST 300
CCPDialog NOT_CCP_SUCCESS 400
MyCustomConfig NOT Installed 500
CostInitialize 600
FileCost 700
CostFinalize 800
InstallDialog NOT Installed 900
MaintenanceDialog Installed AND NOT Resume 1000
ActionDialog 1100
RegisterProduct 1200
InstallValidate 1300
InstallFiles 1400
MyCustomAction $MyComponent > 2 1500
InstallFinalize 1600

 

The following actions in this sequence table are defined by the installer and are examples of standard actions:

LaunchConditions

 

AppSearch

 

CCPSearch

 

CostInitialize

 

FileCost

 

CostFinalize

 

RegisterProduct

 

InstallFiles

 

InstallFiles

 

InstallValidate

The following actions were defined by the table's author and are examples of custom actions and must be listed in the CustomAction table:

MyCustomConfig

 

MyCustomAction

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.

CCPDialog

 

InstallDialog

 

MaintenanceDialog

 

ActionDialog

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.

Using Properties

Conditional Statement Syntax