MsiConfigureFeature

[This is preliminary documentation and subject to change.]

The MsiConfigureFeature function configures the installed state for a product feature.

UINT MsiConfigureFeature(
  LPCTSTR szProduct,          // product code
  LPCTSTR szFeature,          // feature ID
  INSTALLSTATE eInstallState  // install state
);
 

Parameters

szProduct
Specifies the product code for the product to be configured.
szFeature
Specifies the feature ID for the feature to be configured.
eInstallState
Specifies the installation state for the feature. This parameter must be one of the following values.
Value Meaning
INSTALLSTATE_ADVERTISE The feature is advertised
INSTALLSTATE_LOCAL The feature is installed locally.
INSTALLSTATE_ABSENT The feature is uninstalled.
INSTALLSTATE_SOURCE The feature is installed to run from source.
INSTALLSTATE_DEFAULT The feature is installed to its default location.

Return Values

ERROR_INVALID_PARAMETER
An invalid parameter was passed to the function.
ERROR_SUCCESS
The function succeeded.
Any Action Error
An error relating to an action occurred.
Any Initialization Error
An error relating to initialization occurred.

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

Installation and Configuration Functions