ReinstallProduct Method (product, reinstallModes)

DTF API

Copy image CopyHover image
Deployment Tools Foundation ReinstallProduct Method (product, reinstallModes)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerReinstallProduct(String, ReinstallModes)
Reinstalls a product.
Declaration Syntax
C# Visual Basic Visual C++ F#
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
)
static member ReinstallProduct : 
        product : string * 
        reinstallModes : ReinstallModes -> unit 
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

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)