MsiVerifyPackage function
Applies to: desktop apps only
The MsiVerifyPackage function verifies that the given file is an installation package.
Syntax
UINT MsiVerifyPackage( __in LPCTSTR szPackagePath );
Parameters
- szPackagePath [in]
-
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. |
Requirements
|
Version | Windows Installer 5.0 on 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, Windows XP, and Windows 2000. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version. |
|---|---|
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | MsiVerifyPackageW (Unicode) and MsiVerifyPackageA (ANSI) |
Send comments about this topic to Microsoft
Build date: 2/3/2012
Community Content
dmex
C# syntax
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
public static extern uint MsiVerifyPackage(string szPackagePath);
dmex
vb.net syntax
<DllImport("msi.dll", CharSet:=CharSet.Unicode)> _
Public Shared Function MsiVerifyPackage(ByVal szPackagePath As String) As UInt32
End Function
Robert Flaming - MSFT
Hex Values for Win32 error codes Published as part of Open Protocol Specifications
As a part of the Open Protocol Specifications, the hex values for Win32 error codes can now be found at http://msdn2.microsoft.com/en-us/library/cc231199.aspx.