MsiDatabaseExport

[This is preliminary documentation and subject to change.]

The MsiDatabaseExport function exports an installer table from an open database to a text archive file.

UINT MsiDatabaseExport(
  MSIHANDLE hDatabase,    // database handle
  LPCTSTR szTableName,    // name of table to export
  LPCTSTR szFolderPath,   // folder containing archive files
  LPCTSTR szFileName      // name of exported table archive file
);
 

Parameters

hDatabase
Handle to the database.
szTableName
Specifies the name of the table to export.
szFolderPath
Specifies the name of the folder that contains archive files.
szFileName
Specifies the name of the exported table archive file.

Return Values

ERROR_BAD_PATHNAME
An invalid path was passed to the function.
ERROR_FUNCTION_FAILED
The function failed.
ERROR_INVALID_HANDLE
An invalid or inactive handle was supplied.
ERROR_INVALID_PARAMETER
An invalid parameter was passed to the function.
ERROR_SUCCESS
The function succeeded.

Remarks

If a table contains streams, MsiDatabaseExport exports each stream to a separate file.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msiquery.h.
  Import Library: Use msi.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Database Access Reference, Database Management Functions