Associate File Extension/URL Prefix - Windows Action

InstallAnywhere 2026 R2

You can use the Associate File Extension/URL Prefix - Windows action to associate file extensions to installed and existing applications on Windows.

Properties Tab

The Properties tab of the Associate File Extension/URL Prefix - Windows action customizer includes the following options and fields:

Associate File Extension/URL Prefix - Windows Customizer | Properties Tab

Option or Field

Description

Installed File

Select this option if you want the installer to associate an application, the installer deploys on the target system. Click the Choose Application button to open the Choose a file dialog box, and then select the installed application file you want the installer to associate with file extension. The installed .exe file or launcher must be selected.

Existing File

Select this option if you want the installer to associate an application that already exists on the target system. Specify the full path to the application's executable (.exe) file in the associated field.

Extension

Select this option if you want the installer to associate a file extension with an application that is already installed or exists on the target system. Specify the file extension in the associated field without the preceding period (.). The file extension can be any alpha-numeric value supported by Windows. You can specify either a new or an existing file extension.

When the Extension option is selected, you must specify a file extension in the associated field.

URL Prefix

Select this option if you want the installer to associate a URL prefix with the selected application. The prefix can contain any alphanumeric characters supported by Windows. You can also specify a new prefix to associate with a protocol handler application. When the URL Prefix option is selected, you must specify an URL prefix in the associated field.

Icon

Use this field if you want the installer to associate a desired or custom icon to the selected application. Click the Choose Icon button to open the Choose a file dialog box, and then select the installed Icon you want for the application. The .ICO icon file with at least 128 x 128 size can be selected. Ideal to select 256 X 256 pixels size transparent icons for better display in Windows Large/Extra Large Icon View.

This field is optional. If Icon is not selected, default Icon of the application will be retained.

MIME Type

Specify the MIME type for the file type—associated with the specified file extension. This field is optional.

Friendly Name

Specify a user-friendly name for the file type—associated with the specified file extension. This field is optional. If no friendly name is specified, the default type name is retained.

ProgID

Specify the Programmatic Identifier (ProgID) to register for the file extension. The file type's Prog ID can be an arbitrary string, but it must be unique on the target system. One ProgID naming convention is to append the word file to the file extension. For example, .ext extension can use the extFile as its ProgID. Another naming convention is to name ProgID after the application used to open the file type. For example, SampleApp.Document.

This field is optional. If no ProgID is given a unique ProgID is generated and used.

The Verbs button can be selected to Configure Verbs for the Extension.

Verbs Configuration Dialog

This Dialog is used to Configure Verbs for the extension.

Verbs Configuration Dialog

Value

Description

Command Sequence

Specify a sequence number for the Verb. If the file extension has more than one Verb associated with it, the sequence number determine the order in which the Verbs are displayed on the right-click menu.

Verb

The Verb that appears in the right-click menu.

Display Name

Specify the text you want to display for the Verb. For Example, "Open with NotePad++". This value is optional. If Display Name is not specified, the name of the verb will be displayed in the right-click menu.

Argument

Specify the command line arguments for the Verb. Use %1 in the argument in place of the selected filename. For Example, when an end user right click C:\file.exe and -p %1 is the argument for the verb, the command line argument becomes -p c:\file.ext. Specify the arguments without any quotes.

Rules, Tags, and Rollback Tabs

For information on the other tabs on this customizer, see the following:

• Rules—Use this tab to add rules to the selected action. For more information, see Assigning a Rule to an Action and Rules Reference.
• Tags—Use this tab to add build configuration tags to the selected action. For more information, see Assigning Tags to Project Elements.
• Rollback—Use this tab to specify rollback behavior for the selected action. For more information, see Configuring Installation Rollback Behavior.

See Also