Installer.RelatedProducts 属性
只读 RelatedProducts 属性返回一个 StringList 对象,该对象枚举为其属性表中具有指定 UpgradeCode 属性的当前用户和计算机安装或播发的所有产品集。
此属性为只读。
语法
propVal = Installer.RelatedProducts
属性值
安装程序枚举的相关问题的升级代码。
注解
若要枚举相关产品,应用程序使用 For Each 构造循环访问 StringList 。 由于不订购相关产品,因此任何新的相关产品都有任意索引。 这意味着该函数可以按任意顺序返回相关产品。
要求
要求 | 值 |
---|---|
版本 |
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows 安装程序 |
DLL |
|
IID |
IID_IInstaller定义为 000C1090-0000-0000-C000-000000000046 |
另请参阅