msiquery.h header

This header is used by Application Installation and Servicing. For more information, see:

msiquery.h contains the following programming interfaces:

Functions

 
MsiCreateRecord

The MsiCreateRecord function creates a new record object with the specified number of fields. This function returns a handle that should be closed using MsiCloseHandle.
MsiCreateTransformSummaryInfoA

The MsiCreateTransformSummaryInfo function creates summary information of an existing transform to include validation and error conditions. Execution of this function sets the error record, which is accessible by using MsiGetLastErrorRecord. (ANSI)
MsiCreateTransformSummaryInfoW

The MsiCreateTransformSummaryInfo function creates summary information of an existing transform to include validation and error conditions. Execution of this function sets the error record, which is accessible by using MsiGetLastErrorRecord. (Unicode)
MsiDatabaseApplyTransformA

The MsiDatabaseApplyTransform function applies a transform to a database. (ANSI)
MsiDatabaseApplyTransformW

The MsiDatabaseApplyTransform function applies a transform to a database. (Unicode)
MsiDatabaseCommit

The MsiDatabaseCommit function commits changes to a database.
MsiDatabaseExportA

The MsiDatabaseExport function exports a Microsoft Installer table from an open database to a Text Archive File. (ANSI)
MsiDatabaseExportW

The MsiDatabaseExport function exports a Microsoft Installer table from an open database to a Text Archive File. (Unicode)
MsiDatabaseGenerateTransformA

The MsiDatabaseGenerateTransform function generates a transform file of differences between two databases. (ANSI)
MsiDatabaseGenerateTransformW

The MsiDatabaseGenerateTransform function generates a transform file of differences between two databases. (Unicode)
MsiDatabaseGetPrimaryKeysA

The MsiDatabaseGetPrimaryKeys function returns a record containing the names of all the primary key columns for a specified table. This function returns a handle that should be closed using MsiCloseHandle. (ANSI)
MsiDatabaseGetPrimaryKeysW

The MsiDatabaseGetPrimaryKeys function returns a record containing the names of all the primary key columns for a specified table. This function returns a handle that should be closed using MsiCloseHandle. (Unicode)
MsiDatabaseImportA

The MsiDatabaseImport function imports an installer text archive file into an open database table. (ANSI)
MsiDatabaseImportW

The MsiDatabaseImport function imports an installer text archive file into an open database table. (Unicode)
MsiDatabaseIsTablePersistentA

The MsiDatabaseIsTablePersistent function returns an enumeration that describes the state of a specific table. (ANSI)
MsiDatabaseIsTablePersistentW

The MsiDatabaseIsTablePersistent function returns an enumeration that describes the state of a specific table. (Unicode)
MsiDatabaseMergeA

The MsiDatabaseMerge function merges two databases together, which allows duplicate rows. (ANSI)
MsiDatabaseMergeW

The MsiDatabaseMerge function merges two databases together, which allows duplicate rows. (Unicode)
MsiDatabaseOpenViewA

The MsiDatabaseOpenView function prepares a database query and creates a view object. This function returns a handle that should be closed using MsiCloseHandle. (ANSI)
MsiDatabaseOpenViewW

The MsiDatabaseOpenView function prepares a database query and creates a view object. This function returns a handle that should be closed using MsiCloseHandle. (Unicode)
MsiDoActionA

The MsiDoAction function executes a built-in action, custom action, or user-interface wizard action. (ANSI)
MsiDoActionW

The MsiDoAction function executes a built-in action, custom action, or user-interface wizard action. (Unicode)
MsiEnableUIPreview

The MsiEnableUIPreview function enables preview mode of the user interface to facilitate authoring of user-interface dialog boxes. This function returns a handle that should be closed using MsiCloseHandle.
MsiEnumComponentCostsA

The MsiEnumComponentCosts function enumerates the disk-space per drive required to install a component. (ANSI)
MsiEnumComponentCostsW

The MsiEnumComponentCosts function enumerates the disk-space per drive required to install a component. (Unicode)
MsiEvaluateConditionA

The MsiEvaluateCondition function evaluates a conditional expression containing property names and values. (ANSI)
MsiEvaluateConditionW

The MsiEvaluateCondition function evaluates a conditional expression containing property names and values. (Unicode)
MsiFormatRecordA

The MsiFormatRecord function formats record field data and properties using a format string. (ANSI)
MsiFormatRecordW

The MsiFormatRecord function formats record field data and properties using a format string. (Unicode)
MsiGetActiveDatabase

The MsiGetActiveDatabase function returns the active database for the installation. This function returns a read-only handle that should be closed using MsiCloseHandle.
MsiGetComponentStateA

The MsiGetComponentState function obtains the state of a component. (ANSI)
MsiGetComponentStateW

The MsiGetComponentState function obtains the state of a component. (Unicode)
MsiGetDatabaseState

The MsiGetDatabaseState function returns the state of the database.
MsiGetFeatureCostA

The MsiGetFeatureCost function returns the disk space required by a feature and its selected children and parent features. (ANSI)
MsiGetFeatureCostW

The MsiGetFeatureCost function returns the disk space required by a feature and its selected children and parent features. (Unicode)
MsiGetFeatureStateA

The MsiGetFeatureState function gets the requested state of a feature. (ANSI)
MsiGetFeatureStateW

The MsiGetFeatureState function gets the requested state of a feature. (Unicode)
MsiGetFeatureValidStatesA

The MsiGetFeatureValidStates function returns a valid installation state. (ANSI)
MsiGetFeatureValidStatesW

The MsiGetFeatureValidStates function returns a valid installation state. (Unicode)
MsiGetLanguage

The MsiGetLanguage function returns the numeric language of the installation that is currently running.
MsiGetLastErrorRecord

The MsiGetLastErrorRecord function returns the error record that was last returned for the calling process. This function returns a handle that should be closed using MsiCloseHandle.
MsiGetMode

The MsiGetMode function is used to determine whether the installer is currently running in a specified mode, as listed in the table.
MsiGetPropertyA

The MsiGetProperty function gets the value for an installer property. (ANSI)
MsiGetPropertyW

The MsiGetProperty function gets the value for an installer property. (Unicode)
MsiGetSourcePathA

The MsiGetSourcePath function returns the full source path for a folder in the Directory table. (ANSI)
MsiGetSourcePathW

The MsiGetSourcePath function returns the full source path for a folder in the Directory table. (Unicode)
MsiGetSummaryInformationA

The MsiGetSummaryInformation function obtains a handle to the _SummaryInformation stream for an installer database. This function returns a handle that should be closed using MsiCloseHandle. (ANSI)
MsiGetSummaryInformationW

The MsiGetSummaryInformation function obtains a handle to the _SummaryInformation stream for an installer database. This function returns a handle that should be closed using MsiCloseHandle. (Unicode)
MsiGetTargetPathA

The MsiGetTargetPath function returns the full target path for a folder in the Directory table. (ANSI)
MsiGetTargetPathW

The MsiGetTargetPath function returns the full target path for a folder in the Directory table. (Unicode)
MsiOpenDatabaseA

The MsiOpenDatabase function opens a database file for data access. This function returns a handle that should be closed using MsiCloseHandle. (ANSI)
MsiOpenDatabaseW

The MsiOpenDatabase function opens a database file for data access. This function returns a handle that should be closed using MsiCloseHandle. (Unicode)
MsiPreviewBillboardA

The MsiPreviewBillboard function displays a billboard with the host control in the displayed dialog box. (ANSI)
MsiPreviewBillboardW

The MsiPreviewBillboard function displays a billboard with the host control in the displayed dialog box. (Unicode)
MsiPreviewDialogA

The MsiPreviewDialog function displays a dialog box as modeless and inactive. (ANSI)
MsiPreviewDialogW

The MsiPreviewDialog function displays a dialog box as modeless and inactive. (Unicode)
MsiProcessMessage

The MsiProcessMessage function sends an error record to the installer for processing.
MsiRecordClearData

The MsiRecordClearData function sets all fields in a record to null.
MsiRecordDataSize

The MsiRecordDataSize function returns the length of a record field. The count does not include the terminating null character.
MsiRecordGetFieldCount

Returns the number of fields in a record.
MsiRecordGetInteger

The MsiRecordGetInteger function returns the integer value from a record field.
MsiRecordGetStringA

The MsiRecordGetString function returns the string value of a record field. (ANSI)
MsiRecordGetStringW

The MsiRecordGetString function returns the string value of a record field. (Unicode)
MsiRecordIsNull

Reports a null record field.
MsiRecordReadStream

The MsiRecordReadStream function reads bytes from a record stream field into a buffer.
MsiRecordSetInteger

Sets a record field to an integer field.
MsiRecordSetStreamA

The MsiRecordSetStream function sets a record stream field from a file. Stream data cannot be inserted into temporary fields. (ANSI)
MsiRecordSetStreamW

The MsiRecordSetStream function sets a record stream field from a file. Stream data cannot be inserted into temporary fields. (Unicode)
MsiRecordSetStringA

The MsiRecordSetString function copies a string into the designated field. (ANSI)
MsiRecordSetStringW

The MsiRecordSetString function copies a string into the designated field. (Unicode)
MsiSequenceA

The MsiSequence function executes another action sequence, as described in the specified table. (ANSI)
MsiSequenceW

The MsiSequence function executes another action sequence, as described in the specified table. (Unicode)
MsiSetComponentStateA

The MsiSetComponentState function sets a component to the requested state. (ANSI)
MsiSetComponentStateW

The MsiSetComponentState function sets a component to the requested state. (Unicode)
MsiSetFeatureAttributesA

The MsiSetFeatureAttributes function can modify the default attributes of a feature at runtime. Note that the default attributes of features are authored in the Attributes column of the Feature table. (ANSI)
MsiSetFeatureAttributesW

The MsiSetFeatureAttributes function can modify the default attributes of a feature at runtime. Note that the default attributes of features are authored in the Attributes column of the Feature table. (Unicode)
MsiSetFeatureStateA

The MsiSetFeatureState function sets a feature to a specified state. (ANSI)
MsiSetFeatureStateW

The MsiSetFeatureState function sets a feature to a specified state. (Unicode)
MsiSetInstallLevel

The MsiSetInstallLevel function sets the installation level for a full product installation.
MsiSetMode

The MsiSetMode function sets an internal engine Boolean state.
MsiSetPropertyA

The MsiSetProperty function sets the value for an installation property. (ANSI)
MsiSetPropertyW

The MsiSetProperty function sets the value for an installation property. (Unicode)
MsiSetTargetPathA

The MsiSetTargetPath function sets the full target path for a folder in the Directory table. (ANSI)
MsiSetTargetPathW

The MsiSetTargetPath function sets the full target path for a folder in the Directory table. (Unicode)
MsiSummaryInfoGetPropertyA

The MsiSummaryInfoGetProperty function gets a single property from the summary information stream. (ANSI)
MsiSummaryInfoGetPropertyCount

The MsiSummaryInfoGetPropertyCount function returns the number of existing properties in the summary information stream.
MsiSummaryInfoGetPropertyW

The MsiSummaryInfoGetProperty function gets a single property from the summary information stream. (Unicode)
MsiSummaryInfoPersist

The MsiSummaryInfoPersist function writes changed summary information back to the summary information stream.
MsiSummaryInfoSetPropertyA

The MsiSummaryInfoSetProperty function sets a single summary information property. (ANSI)
MsiSummaryInfoSetPropertyW

The MsiSummaryInfoSetProperty function sets a single summary information property. (Unicode)
MsiVerifyDiskSpace

The MsiVerifyDiskSpace function checks to see if sufficient disk space is present for the current installation.
MsiViewClose

The MsiViewClose function releases the result set for an executed view.
MsiViewExecute

The MsiViewExecute function executes a SQL view query and supplies any required parameters.
MsiViewFetch

The MsiViewFetch function fetches the next sequential record from the view. This function returns a handle that should be closed using MsiCloseHandle.
MsiViewGetColumnInfo

The MsiViewGetColumnInfo function returns a record containing column names or definitions. This function returns a handle that should be closed using MsiCloseHandle.
MsiViewGetErrorA

The MsiViewGetError function returns the error that occurred in the MsiViewModify function. (ANSI)
MsiViewGetErrorW

The MsiViewGetError function returns the error that occurred in the MsiViewModify function. (Unicode)
MsiViewModify

The MsiViewModify function updates a fetched record.