VerifyPackage Method (packagePath)

DTF API

Copy image CopyHover image
Deployment Tools Foundation VerifyPackage Method (packagePath)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerVerifyPackage(String)
Verifies that the given file is an installation package.
Declaration Syntax
C# Visual Basic Visual C++ F#
public static bool VerifyPackage(
	string packagePath
)
Public Shared Function VerifyPackage ( 
	packagePath As String
) As Boolean
public:
static bool VerifyPackage(
	String^ packagePath
)
static member VerifyPackage : 
        packagePath : string -> bool 
Parameters
packagePath (String)
Path to the package
Return Value
Boolean
True if the file is an installation package; false otherwise.
Remarks

Win32 MSI API: MsiVerifyPackage

Exceptions
Exception Condition
FileNotFoundException the specified package file does not exist
InstallerException the package file could not be opened

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)