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 |
---|---|
|
The method succeeded. |
|
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
Version | Evalcom2.dll version 3.0.3790.371 or later |
---|---|
Header | Evalcom2.h |
DLL | Evalcom2.dll |
IID | IID_IValidate is defined as E482E5C6-E31E-4143-A2E6-DBC3D8E4B8D3 |
See Also
Send comments about this topic to Microsoft
Build date: 8/13/2009
© 2009 Microsoft Corporation. All rights reserved.