ProductState 属性

安装程序在初始化时将 ProductState 属性设置为产品的安装状态。 此属性设置为 MsiQueryProductState返回的以下 INSTALLSTATE 数据类型之一。

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 要求

另请参阅

属性