MsiInstallProduct

[This is preliminary documentation and subject to change.]

The MsiInstallProduct function installs or uninstalls a product.

UINT MsiInstallProduct(
  LPCTSTR szPackagePath,    // path to package
  LPCTSTR szCommandLine     // package command line
);
 

Parameters

szPackagePath
Specifies the path to the package.
szCommandLine
Specifies the command line property settings. This should be a list of the format Property=Setting Property=Setting.

Return Values

ERROR_SUCCESS
The function completed successfully.
Any Action Error
An error relating to an action occurred.
Any Initialization Error
An error relating to initialization occurred.

Remarks

The MsiInstallProduct function displays the user interface with the current settings and log mode. You can change user interface settings with the MsiSetInternalUI and MsiSetExternalUI functions. You can set the log mode with the MsiEnableLog function.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msi.h.
  Import Library: Use msi.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Installation and Configuration Functions