Skip to content

InternetShortcut element (Util extension)

Creates a shortcut to a URL.

Attributes

Directory

string

Identifier reference to Directory element where shortcut is to be created. This attribute’s value defaults to the parent Component directory.

IconFile

string

Icon file that should be displayed. Note that this is a formatted field, so you can use [#fileId] syntax to refer to a file being installed (using the file: protocol).

IconIndex

wxs:Integer

Index of the icon being referenced.

Id

string

Unique identifier in your installation package for this Internet shortcut.

Name

string required

The name of the shortcut file, which is visible to the user. (The .lnk extension is added automatically and by default, is not shown to the user.)

Target

string required

URL that should be opened when the user selects the shortcut. Windows opens the URL in the appropriate handler for the protocol specified in the URL. Note that this is a formatted field, so you can use [#fileId] syntax to refer to a file being installed (using the file: protocol).

Type

Which type of shortcut should be created. This attribute’s value must be one of the following:

  • url: Creates .url files using IUniformResourceLocatorW.
  • link: Creates .lnk files using IShellLinkW (default).

Parents