Shortcut Table

[This is preliminary documentation and subject to change.]

The Shortcut table holds the information the application needs to create Shortcuts on the user's computer.

The Shortcut table has the following columns.

Column Type Key Nullable
Shortcut Identifier Y N
Directory_ Identifier N
Name Text N
Component_ Identifier N
Target Identifier N
Arguments KeyFormatted Y
Description Text Y
HotKey Integer Y
Icon_ Identifier Y
IconIndex Integer Y
ShowCmd Integer Y
WkDir Identifier Y

Columns

Shortcut
The key value for this table.
Directory_
External key into the Directory table specifying the directory into which the Shortcut file is created.

External key to column one of the Directory table.

Name
The name of the Shortcut to be created.
Component_
External key into the Component table specifying the component whose selection determines if the Shortcut is created (or deleted).

External key to column one of the Component table.

Target
The Shortcut target. This is the key into the Feature table in case of advertised Shortcuts. For non-advertised Shortcuts, it is a property that is expanded to a file or a folder that the Shortcut points to. For more information, see the CreateShortcuts action.

External key to column one of the Feature table or KeyFormatted.

Arguments
The command-line arguments for the Shortcut.
Description
The description of the Shortcut.
HotKey
The hotkey for the Shortcut.

Non-negative numbers only. The low-order byte contains the virtual-key code for the key, and the high-order byte contains modifier flags.

Icon_
External key to column one of the Icon table.
IconIndex
The icon index for the Shortcut.

Non-negative numbers only.

ShowCmd
The Show command for the application window.

The following values may be used. The values are exactly as defined for the Windows API function ShowWindow.
Value Meaning
0 SW_HIDE
1 SW_SHOWNORMAL
2 SW_SHOWMINIMIZED
3 SW_SHOWMAXIMIZED
4 SW_SHOWNOACTIVATE
5 SW_SHOW
6 SW_MINIMIZE
7 SW_SHOWMINNOACTIVE
8 SW_SHOWNA
9 SW_RESTORE
10 SW_SHOWDEFAULT
10 SW_MAX

WkDir
The name of the property that has the path of the working directory for the Shortcut.

Remarks

The Shortcuts are created only if the IShellLink interface is present on the system. An advertised shortcut is created when the corresponding feature has been enabled. A non-advertised shortcut is created when the corresponding component has been selected to be installed, either locally or run from source.

This table is referred to when the CreateShortcuts action and the RemoveShortcuts action is executed.