MsiDatabase Object

[This is preliminary documentation and subject to change.]

The MsiDatabase object accesses an installer database.

Before the MsiDatabase object is released (by going out of scope or by setting the object variable to Nothing), the Commit method must be called to write out all persistent changes, else an implicit rollback is performed at object destruction.

Query API Sequencing

The normal course of data access is summarized below:

  1. The client obtains a database object (MsiInstall.OpenDatabase).
  2. Database.OpenView is called, specifying a SQL query.
  3. View.Execute is called, supplying any parameters in an MsiRecord object.
  4. View.Fetch is called repeatedly and returns MsiRecord objects until exhausted.
  5. View.Modify may be called to update a fetched record.
  6. View.Close is called, which releases the query and unfetched records.
  7. Database.Commit is called to persist any database updates.

Properties

DatabaseState

SummaryInformation

TablePersistent

Methods

ApplyTransform

Commit

CreateTransformSummaryInfo

EnableUIPreview

Export

GenerateTransform

Import

Merge

OpenView

PrimaryKeys