Deployment Tools Foundation
InstallProduct Method (packagePath, commandLine)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► InstallProduct(String, String)
Opens an installer package and initializes an install session.
Declaration Syntax
Remarks
To completely remove a product, set REMOVE=ALL in .
This method displays the user interface with the current settings and log mode. You can change user interface settings with the SetInternalUI(InstallUIOptions) and SetExternalUI(ExternalUIHandler, InstallLogModes) functions. You can set the log mode with the EnableLog(InstallLogModes, String) function.
The RebootRequired and RebootInitiated properties should be tested after calling this method.
Win32 MSI API: MsiInstallProduct
Exceptions
Exception | Condition |
---|---|
InstallerException | There was an error installing the product |