Share via


2.2.1.7.4 OpenWith element

The OpenWith element represents a mapping in the client between a file type and an executable application capable of processing or displaying files of that type.

Element-Specific Attributes:

Attribute name

Description

action

(optional) If specified, the value MUST be C, D, R, or U, corresponding to Create, Delete, Replace, and Update. If unspecified, the default value is U.

  • Create: This action MUST be used to create a new Open With association. If a file extension in the OpenWith item exists within the user's profile, then the new association is not created.

  • Delete: This action MUST be used to remove an existing Open With association. An association exists when the file extension in the OpenWith item exists within the user's profile. No action MUST be performed if the association does not exist.

  • Replace: This action MUST be used to delete and re-create an Open With association. The net result of the Replace action MUST be the overwriting of all existing settings associated with the Open With association. If the Open With association does not exist, then the Replace action MUST create a new Open With association.

  • Update: This action MUST be used to modify an Open With association. The action differs from Replace in that it MUST update the settings defined within the preference item. All other settings MUST remain as they were previously configured. If the Open With association does not exist, then the Update action MUST create a new Open With association.

fileExtension

MUST be the extension of the file to associate with the specified application.

Note It is not necessary to insert the period before the file extension.

applicationPath

MUST be the path and name of the application that is to be associated with the file extension.

default

(optional) MUST be set in order to make the associated application the default application that the operating system uses to open the file extension. MUST be 1 to set the default, or 0 to add the Open With association without setting the default.