Share via


Installer.RelatedProducts 屬性

唯讀RelatedProducts屬性會傳回StringList物件,列舉其Property 資料表中具有指定UpgradeCode屬性的所有產品集合,或為目前使用者和電腦安裝或公告。

這個屬性是唯讀的。

Syntax

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 Installer
DLL
Msi.dll
IID
IID_IInstaller定義為 000C1090-0000-0000-C000-000000000046

另請參閱

MsiEnumRelatedProducts