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.
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.dll) Version: 3.0.0.0 (3.9.1006.0)