Installer Function
Reference
To enable the Microsoft� Windows� Installer in your application, you must use
the installation functions. The following is a list of these functions by
category.
User Interface and
Logging Functions
Function name |
Brief description of function |
MsiSetInternalUI |
Enables the installer's internal user interface. |
MsiSetExternalUI |
Enables an external user-interface handler. |
MsiEnableLog |
Sets the log mode for all installations in the calling
process. |
Handle Management
Functions
Function name |
Brief description of function |
MsiCloseHandle |
Closes an open installation handle. |
MsiCloseAllHandles |
Closes all open installation handles. Not to be used for
cleanup. |
Installation and
Configuration Functions
Component-Specific
Functions
Application-Only Functions
Function name |
Brief description of function |
MsiCollectUserInfo |
Stores user information from an installation wizard. |
MsiUseFeature |
Increments usage count for a feature and indicates
installation state. |
MsiUseFeatureEx |
Increments usage count for a feature and indicates
installation state. |
MsiGetProductCode |
Returns product code using the component
code. |
System Status Functions
Product Query Functions
Function name |
Brief description of function |
MsiOpenProduct |
Opens a product for use with the functions that access the
database. |
MsiOpenPackage |
Opens a package for use with the functions that access the
database. |
MsiOpenPackageEx |
Opens a package for use with the functions that access the
database. Available with Windows Installer version 2.0 or later. |
MsiIsProductElevated |
Checks whether the product is installed with elevated
privileges. Available with Windows Installer version 2.0 or later. |
MsiGetProductInfoFromScript |
Returns product information for an installer script file.
available with Windows Installer version 2.0 or later. |
MsiGetProductProperty |
Retrieves properties in the product database. |
MsiGetShortcutTarget |
Examines a shortcut and returns its product, feature name,
and component if available. Available in Windows Installer version 1.1 and
later versions. |
MsiGetFeatureInfo |
Returns descriptive information for a feature. |
MsiVerifyPackage |
Verifies that the specified file is an installation
package. |
Patching Functions
Function name |
Brief description of function |
MsiApplyPatch |
Invokes an installation and applies a patch package. |
MsiEnumPatches |
Returns the GUID for each patch that has been applied to a
product and a list of transforms from each patch that apply to the
product. |
MsiGetPatchInfo |
Returns information about a patch.
|
File Query Functions
Function name |
Brief description of function |
MsiGetFileHash |
Takes the path to a file and returns a 128-bit hash of
that file. Available with Windows Installer version 2.0 and later
versions. |
MsiGetFileSignatureInformation |
Takes the path to a file that has been digitally signed
and returns the file's signer certificate and hash. Available with Windows
Installer version 2.0 and later versions. |
MsiGetFileVersion |
Returns the version string and language string.
|
Database 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 Functions
section.
Platform SDK Release: August
2001
'