MsiVerifyPackageA function (msi.h)

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


UINT MsiVerifyPackageA(
  [in] LPCSTR szPackagePath


[in] szPackagePath

Specifies the path and file name of the package.

Return value

Value Meaning
The file is not a valid package.
The file could not be opened.
The parameter is not valid.
The file is a package.



The msi.h header defines MsiVerifyPackage as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.


Minimum supported client Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.
Target Platform Windows
Header msi.h
Library Msi.lib
DLL Msi.dll