ProductState property

The installer sets the ProductState property to the installation state for the product at initialization. This property is set to one of the following INSTALLSTATE data types returned by MsiQueryProductState.

INSTALLSTATENumeric valueInstallation state of product
INSTALLSTATE_UNKNOWN-1The product is neither advertised or installed.
INSTALLSTATE_ADVERTISED1The product is advertised but not installed.
INSTALLSTATE_ABSENT2The product is installed for a different user.
INSTALLSTATE_DEFAULT5The product is installed for the current user.




Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.

See also