This material is intended for developers who are writing their own setup programs and developers who want to learn more about the installer database tables. For general information on the installer, see
About Windows Installer.
You can use the installer access functions to access the database and the installation process. These functions should only be used by custom installation actions and authoring tools. Some of the installer access functions require SQL query strings for querying the database. Queries must adhere to the installer
SQL syntax.
This topic lists the installer database access functions by category.
General Database Access Functions
Database Management Functions
Record Processing Functions
Summary Information Property Functions
Installer State Access Functions
Installer Action Functions
| Function | Description |
| MsiDoAction | Executes built-in action, custom action, or user-interface wizard action. |
| MsiEvaluateCondition | Evaluates a conditional expression containing property names and values. |
| MsiProcessMessage | Sends an error record to the installer for processing. |
| MsiSequence | Executes an action sequence. |
Installer Location Functions
| Function | Description |
| MsiGetSourcePath | Returns the full source path for a folder in the Directory table. |
| MsiGetTargetPath | Returns the full target path for a folder in the Directory table. |
| MsiSetTargetPath | Sets the full target path for a folder in the Directory table. |
Installer Selection Functions
User Interface Functions
All functions support both ANSI and Unicode calls. To use these functions, include MsiQuery.h and link with Msi.lib.
Installation Functions
In addition to the database access functions listed above, you create an installation package for an application by using the installer functions listed in the
Installer Function Reference section.
Send comments about this topic to Microsoft
Build date: 11/12/2009