大网数据广告活动
安装更新与部署

Sequence Table Detailed Example

· 52CE 我爱测

Here is an example of a sequence table.

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.

Related topics

Using Properties

Conditional Statement Syntax

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。