MsiCreateTransformSummaryInfo function
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.
Syntax
UINT MsiCreateTransformSummaryInfo( _In_ MSIHANDLE hDatabase, _In_ MSIHANDLE hDatabaseReference, _In_ LPCTSTR szTransformFile, _In_ int iErrorConditions, _In_ int iValidation );
Parameters
- hDatabase [in]
-
The handle to the database that contains the new database summary information.
- hDatabaseReference [in]
-
The handle to the database that contains the original summary information.
- szTransformFile [in]
-
The name of the transform to which the summary information is added.
- iErrorConditions [in]
-
The error conditions that should be suppressed when the transform is applied. Use one or more of the following values.
- iValidation [in]
-
Specifies the properties to be validated to verify that the transform can be applied to the database. This parameter can be one or more of the following values.
Validate product version flags.
Product version relationship flags. In the following table the installed version is the version of the package that is being transformed, and the base version is the version of the package that is used to create the transform.
Upgrade code validation flags.
Validation flag Meaning - MSITRANSFORM_VALIDATE_UPGRADECODE
- 0x00000800
UpgradeCode must match base database.
Return value
- ERROR_INVALID_HANDLE
-
An invalid or inactive handle is supplied.
- ERROR_INVALID_PARAMETER
-
An invalid parameter is passed to the function.
- ERROR_OPEN_FAILED
-
The transform storage file cannot be opened.
- ERROR_SUCCESS
-
The function succeeds.
- ERROR_INSTALL_PACKAGE_INVALID
-
A reference to an invalid Windows Installer package.
Remarks
The ProductCode Property and ProductVersion Property must be defined in the Property Table of both the base and reference databases. If MSITRANSFORM_VALIDATE_UPGRADECODE is used, the UpgradeCode Property must also be defined in both databases. If these conditions are not met, MsiCreateTransformSummaryInfo returns ERROR_INSTALL_PACKAGE_INVALID.
- Do not use the semicolon for filenames or paths, because it is used as a list delimiter for transforms, sources, and patches.
- This function cannot be called from custom actions. A call to this function from a custom action causes the function to fail.
Requirements
|
Version | Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP |
|---|---|
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | MsiCreateTransformSummaryInfoW (Unicode) and MsiCreateTransformSummaryInfoA (ANSI) |
See also
Build date: 11/30/2012