![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
ConfigureFeature Method (productCode, feature, installState)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► ConfigureFeature(String, String, InstallState)
Configures the installed state for a product feature.
![](collapse_all.gif)
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 )
![](collapse_all.gif)
- 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.
![](collapse_all.gif)
The RebootRequired and RebootInitiated properties should be tested after calling this method.
Win32 MSI API: MsiConfigureFeature
![](collapse_all.gif)
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.9.1006.0)