Deployment Tools Foundation
ReinstallFeature Method (product, feature, reinstallModes)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► ReinstallFeature(String, String, ReinstallModes)
Reinstalls a feature.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static void ReinstallFeature( string product, string feature, ReinstallModes reinstallModes )
Public Shared Sub ReinstallFeature ( product As String, feature As String, reinstallModes As ReinstallModes )
public: static void ReinstallFeature( String^ product, String^ feature, ReinstallModes reinstallModes )
Parameters
- product (String)
- Product code for the product containing the feature to be reinstalled
- feature (String)
- Feature to be reinstalled
- reinstallModes (ReinstallModes)
- Reinstall modes
Remarks
Win32 MSI API: MsiReinstallFeature
Exceptions
Exception | Condition |
---|---|
InstallCanceledException | the user exited the installation |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)