ConfigureFeature Method (productCode, feature, installState)

DTF API

Copy image CopyHover image
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++ F#
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
)
static member ConfigureFeature : 
        productCode : string * 
        feature : string * 
        installState : InstallState -> unit 
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.dll) Version: 3.0.0.0 (3.11.1.2318)