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

Authoring Merge Module Registry Tables

· 52CE 我爱测

Use Merge Module Registry tables according to the type of registry information.

Use Merge Module Registry tables according to the type of registry information.

TypeLib, Class, AppId, ProgId, Extension, Verb, or MIME Tables

For type libraries, classes, extensions, and verbs, author registry information into the merge module's TypeLib, Class, AppId, ProgId, Extension, Verb, or MIME tables. If you use the Registry table to add this information, Windows 2000 cannot provide system-wide advertisement for these components.

Merge module authors may decide not to register using the Class table for the following reasons:

  • To be registered by the Class table, the file has to be the KeyPath of its component. This may require an unacceptable change in the organization of components.
  • A COM call may trigger an installer attempt to reinstall an advertised class. Authors may decide not to register a class using the Class table in order to avoid triggering a reinstallation when the client computer does not support a user interface.

Registry Table

Use the Registry table to add registry information that cannot be authored into the TypeLib, Class, AppId, ProgId, Extension, Verb, or MIME tables. Windows 2000 cannot provide system-wide advertisement for components that use the Registry table.

When authoring the Registry table, refer to file paths using the [#File] or [!File] format rather than as [Directory]Filename. The latter format does not support run-from-source installation. The former format also makes missing files and faulty components easier to detect.

Care is needed when using formatted text in the Key column of the Registry table. Because Windows Installer does not reinstall components that are already installed, using formatted text in this field may cause registry keys to be left behind on application removal.

SelfReg Table

Using the SelfReg table is not recommended. For a list of reasons for not using self-registration, see SelfReg table. You should use the TypeLib, Class, AppId, ProgId, Extension, Verb, and MIME tables where possible instead and the Registry table in all other cases.

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)

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

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