Windows Installer Editor Reference
387
Merge Modules and Transforms
Code page mismatch
Suppress errors from occurring if the code page (language) setting of the
transform does not match that of the base .MSI.
z
Validation
The following check boxes and fields let you require certain conditions to be true for
the transform to be applied to the base .MSI.
Match Language
Mark this if the language of the transform must match the language of the base
.MSI.
Match Product
Mark this if the product code of the transform must match the product code of
the base .MSI.
Match Upgrade Code
Mark this if the upgrade code of the transform must match the upgrade code of
the base .MSI.
Version Matching
The version of the installation (set on the Product Details page) is in the form
AA.BB.CCCC.DDDD, where AA represents the major version, BB represents the
minor version, CCCC represents the update version, and DDDD represents the
build version. Select an item in the list to have the version of the transform
checked against the version of the base .MSI. If the versions do not match, an
error is generated during installation.
Version Relationship
If you chose to check versions, specify what version relationship must be true in
order not to generate an error.
Applying a Transform to an Installation
A transform must be applied to a base .MSI during installation using a command-line
option; it cannot be applied beforehand.
On the command line, type the following:
msiexec /i Application.msi TRANSFORMS=TransformName.mst
where Application.msi is the name of the .MSI, and TransformName.mst is the name of
the transform.
Because it is not practical to have end users type a line on the command line to run a
transform, we suggest you use one the following methods to run the transform:
z
Write a batch file that runs the .MSI along with the appropriate transform.
z
Output the installation as an .EXE that launches an .MSI, which lets you send
command-line options to the .MSI. Do this on the Build Options page. See the
example below.
Example: Applying a transform with an .EXE
In this example, you output the installation as an .EXE that launches an .MSI and applies
the transform.
1. Select Installation Expert > Releases page.
2. Create a new release.