Skip to main content
Version: v3

InternetShortcut Element (Util Extension)

Description
Creates a shortcut to a URL.
Windows Installer references
None
Parents
Component
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
IdStringUnique identifier in your installation package for this Internet shortcut.Yes
DirectoryStringIdentifier reference to Directory element where shortcut is to be created. This attribute's value defaults to the parent Component directory. 
IconFileString 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).  
IconIndexInteger Index of the icon being referenced  
NameString 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.) Yes
TargetString 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). Yes
TypeEnumerationWhich 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).
 
How Tos and Examples
See Also
Util Schema