Setting ApplicationID in NSIS shortcuts

Sunday, 27th December 2009 - 12:42 GMT

With the addition of Jump Lists in Windows 7, the Application ID property of shortcuts has become more significant. It is this property that links a shortcut and the EXE to the jump list, without the ID being set there is no jump list support for that application.

When I wrote this plugin, it was not possible to modify the ID for shortcuts created using the CreateShortcut command in NSIS and so no jump lists were shown in the Start Menu. This plugin adds an ApplicationID::Set command allowing you to set the ID on a file in an NSIS script using something like:

NSIS code:
  1. CreateShortCut "$SMPROGRAMS\$StartMenuFolder\${PRODUCT_NAME}.lnk" "$INSTDIR\myapp.exe"
  2. ApplicationID::Set "$SMPROGRAMS\$StartMenuFolder\${PRODUCT_NAME}.lnk" "MyAppID"

Attached files