MsiQueryFeatureState function
The MsiQueryFeatureState function returns the installed state for a product feature.
Syntax
INSTALLSTATE MsiQueryFeatureState( _In_ LPCTSTR szProduct, _In_ LPCTSTR szFeature );
Parameters
- szProduct [in]
-
Specifies the product code for the product that contains the feature of interest.
- szFeature [in]
-
Identifies the feature of interest.
Return value
| Value | Meaning |
|---|---|
|
The feature is not installed. |
|
The feature is advertised |
|
The feature is installed locally. |
|
The feature is installed to run from source. |
|
An invalid parameter was passed to the function. |
|
The product code or feature ID is unknown. |
Remarks
The MsiQueryFeatureState function does not validate that the feature is actually accessible.
Requirements
|
Version |
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. |
|---|---|
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
MsiQueryFeatureStateW (Unicode) and MsiQueryFeatureStateA (ANSI) |
See also