Windows Installer Editor Reference
177
Assembling an Installation
Select Installation Expert > File Associations page.
a. From Current Feature, select a feature or condition. (Because any item you
add must be assigned to a specific feature, you cannot add an item when All
Features is selected.)
Items that you add to a feature are installed on the destination computer
only if the feature is installed. Items that you add to a condition are installed
only if the feature is installed and the condition is true.
b. Click Add at the right of the page and select New.
In Setup Editor, on the Components or Features tab, right-click a component or
feature and select New > File Association.
The File Association Details dialog box appears.
2. On the Extension Details tab, select the executable to use for the extension, type an
extension, and enter the program ID for the executable.
See
Determining Extension Settings
on page 178.
3. (Optional.) On the Command Verbs tab, click Add, and on the Verb Details dialog
box that appears, set the actions that will be available when the end user right-
clicks an executable with this extension in Windows Explorer.
See
Adding Command Verbs
on page 178.
4. (Optional.) On the MIME Types tab, mark Show All and mark check boxes to select
the MIME types to associate with this extension.
See
Selecting MIME Types
on page 179.
5. Click OK.
The file association appears. To edit it, double-click its name. To delete it, use the right-
click menu.
In Setup Editor, a new branch of folders is created under the Advertising icon to show
the application folder, the Extensions folder, and the ProgId folder.
To import a file association
1. Select Installation Expert > File Associations page.
2. From Current Feature, select a feature or condition. (Because any item you add
must be assigned to a specific feature, you cannot add an item when All Features
is selected.)
3. Click Add at the right of the File Associations page and select Import.
The Import File Association dialog box appears.
4. Click Browse to select the executable to use for the extension. You can only select
executables that you have already added to the installation.
5. From Extension, select the extension to use. This list shows all available extensions
on your computer.
6. Click OK.
All relevant information for the extension you select is imported into the Extension
Details, Command Verbs, and MIME Types tabs. To edit those tabs, double-click the file
association name.