MsiQueryProductState

[This is preliminary documentation and subject to change.]

The MsiQueryProductState function returns the installed state for a product.

INSTALLSTATE MsiQueryProductState(
  LPCTSTR szProduct  // product code
);
 

Parameters

szProduct
Specifies the product code that identifies the product to be queried.

Return Values

INSTALLSTATE_ABSENT
The product is not installed.
INSTALLSTATE_BAD_CONFIGURATION
The configuration data is corrupt.
INSTALLSTATE_DEFAULT
The product is installed.
INSTALLSTATE_INVALIDARG
An invalid parameter was passed to the function.
INSTALLSTATE_UNKNOWN
The product code does not identify a known product.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msi.h.
  Import Library: Use msi.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

System Status Functions