IValidate::OpenDatabase Method

Windows Installer

IValidate::OpenDatabase Method

The OpenDatabase method opens a Windows Installer installation package or merge module for validation.

Syntax

C++HRESULT OpenDatabase(
  [in]  LPCOLESTR szDatabase
);

Parameters

szDatabase [in]

The fully qualified path to the installation package or merge module to be opened. The szDatabase parameter cannot be NULL.

Return Value

Return code Description
S_OK

The method succeeded.

E_POINTER

The value of szDatabase is invalid.

 

This method can also return one or more of the errors returned by the MsiOpenDatabase function. The error is converted to HRESULTS using the HRESULT_FROM_WIN32 function.

Remarks

The OpenDatabase method can also accept a handle to an opened database. The handle to the opened database can be provided in the form "#nnnn" where nnnn is the database handle in string form. For example, for an opened database handle 123, the method can accept #123 for the value of szDatabase instead of the path to the package.

Requirements

VersionEvalcom2.dll version 3.0.3790.371 or later
HeaderEvalcom2.h
DLLEvalcom2.dll
IIDIID_IValidate is defined as E482E5C6-E31E-4143-A2E6-DBC3D8E4B8D3

See Also

IValidate
Using Evalcom2
Validation Callback Functions

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.