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

Enumerating Components

· 52CE 我爱测

Windows Installer 5.0 running on Windows Server 2008 R2 or Windows 7 can enumerate all components installed on the computer and obtain the key path for the component.

Windows Installer 5.0 running on Windows Server 2008 R2 or Windows 7 can enumerate all components installed on the computer and obtain the key path for the component. A package authored for Windows Installer 5.0 can use the MsiEnumComponentsEx, MsiEnumClientsEx, and MsiGetComponentPathEx functions to search for components and products across user accounts and installation contexts. The MsiEnumComponents, MsiEnumClients, and MsiGetComponentPath functions only return information for components and products installed for the user account that called the function. Multiple calls to these functions, at least once for each user account, are required to collect information for the entire computer.

The MsiEnumComponentsEx function enumerates installed components. The function retrieves one component code each time it is called. The Component Object receives information about an installed component by this function.

The MsiEnumClientsEx function enumerates products that are clients of a specified installed component. The Client Object receives information about a client by this function.

The MsiGetComponentPathEx function returns the full path to an installed component. The function returns the registry key if the key path for the component is a registry key. The ComponentInfo Object receives information about an installed component by this function.

Windows Installer 4.5 or earlier: Not supported. This functionality is available beginning with Windows Installer 5.0 running on Windows 7 or Windows Server 2008 R2.

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)

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

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