Windows Installer Editor Reference
335
Merge Modules and Transforms
Example: Suppose you want to let the installation author set the attributes of a file
to system and vital. The decimal value of the system attribute is 4. The decimal
value of the vital attribute is 512. You would add these values and enter a bitmask
of 516.
5. Click Add.
The Drop-down List Value dialog box appears.
6. Complete the dialog box:
Name
Enter text to describe the substitution value. The installation author sees this
value in the Value drop-down list on the Merge Module Configuration dialog
box.
Value
Enter the value to be substituted for the current value of the configuration item.
7. Click OK.
The Configuration Item Details dialog box lists the text and value you defined.
8. Repeat the preceding three steps to add additional values.
9. Click OK.
The Module Substitution dialog box appears.
The values you defined for the configurable item appear in the Value field, and the
items appear in the Configuration Items list box.
10. Click OK.
Specifying a Key for Substitution
When you add a configuration item to a configurable merge module as a key into a
table, you must specify a table for the key to make configurable. When adding the
merge module to an installation, the installation author selects from a list that appears.
For information on this format type, see Key Format Types in the Windows Installer SDK
Help.
To specify a key for substitution
1. Access the Configuration Item Details dialog box from the Module Substitution
dialog box.
See
Creating a Configurable Merge Module
on page 331.
2. Complete the Configuration Item Details dialog box.
See
Setting Configuration Item Details
on page 332.
3. From Type, select Key Into a Table.
4. Mark Delete Unreferenced Rows to have the row that is referenced by the default
value merged if the installation author selects the default value when adding the
merge module to an installation.
Example: Suppose the merge module includes a dialog box with a graphic. You
select Binary (Bitmap) from Key Table and set the Default Value to the bitmap in
the merge module. If the installation author selects a different bitmap when adding
the merge module to an installation, then the default bitmap is no longer