ConfigureFeature Method (productCode, feature, installState)

Microsoft Deployment Tools

Deployment Tools Foundation ConfigureFeature Method (productCode, feature, installState)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerConfigureFeature(String, String, InstallState)
Configures the installed state for a product feature.
Declaration Syntax
C# Visual Basic Visual C++
public static void ConfigureFeature(
	string productCode,
	string feature,
	InstallState installState
)
Public Shared Sub ConfigureFeature ( _
	productCode As String, _
	feature As String, _
	installState As InstallState _
)
public:
static void ConfigureFeature(
	String^ productCode, 
	String^ feature, 
	InstallState installState
)
Parameters
productCode (String)
Product code of the product to be configured.
feature (String)
Specifies the feature ID for the feature to be configured.
installState (InstallState)
Specifies the installation state for the feature.
Remarks

The RebootRequired and RebootInitiated properties should be tested after calling this method.

Win32 MSI API: MsiConfigureFeature

Exceptions
Exception Condition
InstallerException There was an error configuring the feature

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)