Installer Function Reference

[This is preliminary documentation and subject to change.]

To enable the Microsoft® Windows® installer in your application, you must use the installation functions. This topic lists these functions by category.

User Interface and Logging Functions

You can use the following user interface and logging functions in your application:

MsiSetInternalUI

MsiSetExternalUI

MsiEnableLog

Handle Management Functions

You can use the following handle management functions in your application:

MsiCloseHandle

MsiCloseAllHandles

Installation and Configuration Functions

You can use the following installation and configuration functions in your application:

MsiInstallProduct

MsiConfigureProduct

MsiReinstallProduct

MsiConfigureFeature

MsiReinstallFeature

MsiInstallMissingComponent

MsiInstallMissingFile

Component-Specific Functions

You can use the following functions to provide components in your application:

MsiProvideComponent

MsiProvideQualifiedComponent

You can use the following functions to locate components in your application. The state of the feature being used should have been checked previously:

MsiGetComponentPath

MsiLocateComponent

Application-Only Functions

Your application can use the following application-only functions:

MsiCollectUserInfo

MsiUseFeature

MsiGetProductCode

System Status Functions

You can use the following functions to query the status of the system:

MsiEnumProducts

MsiEnumFeatures

MsiEnumComponents

MsiEnumClients

MsiEnumComponentQualifiers

MsiQueryFeatureState

MsiQueryProductState

MsiGetFeatureUsage

MsiGetProductInfo

MsiGetUserInfo

Product Query Functions

You can use the following functions to query the product:

MsiOpenProduct

MsiOpenPackage

MsiGetProductProperty

MsiGetFeatureInfo

Patching Functions

You can use the following functions to patch existing products.

MsiApplyPatch

Database Access Reference Functions

In addition to the installer functions listed above, you can manipulate information in the installation database by using the database access functions described in the Database Access Reference section.