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 |