Installer.Components 屬性
唯讀 的 Components 屬性會傳回 StringList 物件,列舉所有產品的已安裝元件集。
這個屬性是唯讀的。
Syntax
propVal = Installer.Components
屬性值
備註
若要列舉元件,應用程式可以使用 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 |
|
IID |
IID_IInstaller定義為 000C1090-0000-0000-C000-000000000046 |
另請參閱