Share via


Installer.Products 屬性

Products屬性是唯讀屬性,會傳回StringList物件,列舉針對目前使用者和電腦安裝或公告的所有產品集。

這個屬性是唯讀的。

Syntax

propVal = Installer.Products

屬性值

備註

若要列舉產品,應用程式會使用 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

另請參閱

MsiEnumProducts