Getting Application Information
The product database contains information about a product. For more information on obtaining product information with enumeration functions, see Initializing an Application.
To get product information
- Verify that a product is installed by calling the MsiQueryProductState function.
- Open the database and obtain a handle to it by calling the
If the database is contained in an installation package, call the MsiOpenPackage function.
- Use the open handle to obtain product properties with the MsiGetProductProperty function, and to obtain descriptive feature information with the MsiGetFeatureInfo function.
- Close an open installation handle by calling the
The MsiCloseAllHandles function is a diagnostic function and should not be used to close handles you know to be open. It is acceptable to call the MsiCloseAllHandles function when the application closes to ensure that all handles have been closed.