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