MsiVerifyPackage Function

Windows Installer

MsiVerifyPackage Function

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

Syntax

C++UINT MsiVerifyPackage(
  __in  LPCTSTR szPackagePath
);

Parameters

szPackagePath [in]

Specifies the path and file name of the package.

Return Value

Value Meaning
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.

 

Requirements

VersionWindows 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.
HeaderMsi.h
LibraryMsi.lib
DLLMsi.dll
Unicode and ANSI namesMsiVerifyPackageW (Unicode) and MsiVerifyPackageA (ANSI)

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.