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

Configurable Merge Modules

· 52CE 我爱测

Merge modules (.msm files) may be authored to contain attributes that are configurable by the consumer of the merge module.

Merge modules (.msm files) may be authored to contain attributes that are configurable by the consumer of the merge module. This enables the merge module to be configured at the time the installation package and module are merged and installed by the end-user. Configurable merge modules require Mergemod.dll version 2.0 but can run on any version of the Windows Installer.

The implementation of configurable merge modules consists of two parts. First, when creating the merge module (.msm file), the merge module author adds information to the module database that specifies which items can be modified and how these items can be configured by the module user. The author adds entries to the Merge Module Database Tables that are reserved for configurable information (ModuleConfiguration table and ModuleSubstitution table), updates the _Validation table, and adds entries for the configurable merge module tables to the ModuleIgnoreTable table. The additions to the ModuleIgnore table are required to make the module compatible with Mergemod.dll versions earlier than 2.0.

Second, when merging the module into an installation package (.msi file), the end-user of the module uses a merge tool. The merge tool calls Mergemod.dll to expose the configuration information in the module to a client configuration tool. The configuration tool may interact with the end-user but is not required to expose all possible configuration options. If the user declines to provide a selection for a configurable item, the module may provide a default value. After the user gives the configuration tool his selections, the merge tool calls Mergemod.dll to perform the merge.

Configurable merge modules are fully compatible with tools earlier than Mergemod.dll version 2.0. In these cases, the tool uses the default values in the module.

For more information, see Using Configurable Merge Modules.

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)

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

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