ProductState 屬性
安裝程式會將 productState 屬性設定為初始化時產品的安裝狀態。 此屬性設定為下列其中一個 INSTALLSTATE 數據類型,由 MsiQueryProductState傳回。
INSTALLSTATE | 數值 | 產品的安裝狀態 |
---|---|---|
INSTALLSTATE_UNKNOWN | -1 | 產品不會公告或安裝。 |
INSTALLSTATE_ADVERTISED | 1 | 產品已公告但未安裝。 |
INSTALLSTATE_ABSENT | 2 | 產品會為不同的使用者安裝。 |
INSTALLSTATE_DEFAULT | 5 | 產品會針對目前使用者安裝。 |
要求
要求 | 價值 |
---|---|
版本 |
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。 如需 Windows Installer 版本所需的最低 Windows Service Pack 相關信息,請參閱 Windows Installer Run-Time 需求。 |
另請參閱