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:
-
The client obtains a database object (MsiInstall.OpenDatabase).
-
Database.OpenView is called, specifying a SQL query.
-
View.Execute is called, supplying any parameters in an MsiRecord object.
-
View.Fetch is called repeatedly and returns MsiRecord objects until exhausted.
-
View.Modify may be called to update a fetched record.
-
View.Close is called, which releases the query and unfetched records.
-
Database.Commit is called to persist any database updates.
Properties
DatabaseState
SummaryInformation
TablePersistent
Methods
ApplyTransform
Commit
CreateTransformSummaryInfo
EnableUIPreview
Export
GenerateTransform
Import
Merge
OpenView
PrimaryKeys