MsiVerifyPackage

[This is preliminary documentation and subject to change.]

The MsiVerifyPackage function verifies that the given file is an installation package.

UINT MsiVerifyPackage(
  LPCTSTR szPackagePath  // location of package
);
 

Parameters

szPackagePath
Specifies the path and file name of the package.

Return Values

ERROR_INSTALL_PACKAGE_INVALID
The file is not a valid package.
ERROR_INSTALL_PACKAGE_OPEN_FAILED
The file could not be opened.
ERROR_INVALID_PARAMETER
The parameter is not valid.
ERROR_SUCCESS
The file is a package.

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.