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

Authoring Merge Module Sequence Tables

· 52CE 我爱测

Include the MergeModuleSequence tables in the .msm file if the merge module must modify the action sequence tables of the target .msi file. Merging does not add these tables to the .msi file. These tables only occur in merge modules.

Include the MergeModuleSequence tables in the .msm file if the merge module must modify the action sequence tables of the target .msi file. Merging does not add these tables to the .msi file. These tables only occur in merge modules.

If any of the ModuleSequence tables are present in an .msm file, an empty copy of the corresponding installer sequence table must also be authored into the merge module. For example, if a merge module contains a ModuleAdminExecuteSequence table, the merge module must also include an empty AdminExecuteSequence table. During a merge, these empty tables provide the merge tool with necessary schema guidelines.

When using standard actions in merge module sequence tables, the value in the Sequence column should be the recommended action sequence number for the standard action. See the suggested action sequences given below for the recommended sequence numbers in each sequence table. If the sequence number in the merge module sequence table differs from the sequence number for the same action in the .msi file, the merge tool uses the sequence number in the .msi file during the merge.

MergeModuleSequence table Recommended action sequences
ModuleAdminUISequence Suggested AdminUISequence
ModuleAdminExecuteSequence Suggested AdminExecuteSequence
ModuleAdvtUISequence Suggested AdvtUISequence
ModuleAdvtExecuteSequence Suggested AdvtExecuteSequence
ModuleInstallUISequence Suggested InstallUISequence
ModuleInstallExecuteSequence table Suggested InstallExecuteSequence

If a standard action is used in the Action column of a merge module sequence table, the BaseAction and After columns of that record must be Null.

If a custom action or dialog is entered into the Action column, the Sequence column must be Null.

If an action returning a termination flag is entered into the Action column, the Sequence column should contain the negative value for that flag and the BaseAction and After columns of that record must be Null. The following negative values indicate that the action is called if the installer returns the termination flag.

Termination flag Value Description
msiDoActionStatusSuccess -1 Successful completion.
msiDoActionStatusUserExit -2 User terminates install.
msiDoActionStatusFailure -3 Fatal exit terminates.
msiDoActionStatusSuspend -4 Install is suspended.

The BaseAction column can contain a standard action, a custom action specified in the merge module's custom action table, or a dialog specified in the module's dialog table. The BaseAction column is a key into the Action column of this table. It cannot be a foreign key into another merge table or table in the .msi file. This means that every standard action, custom action, or dialog listed in the BaseAction column must also be listed in the Action column of another record in this table.

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)

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

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