Skip to content
⌘ NSIS Forum Archive

ShortCut Icon

5 posts

BarrelOfAGun#

ShortCut Icon


CreateShortCut "$DESKTOP\Starlight.lnk"
"$INSTDIR\Starlight.exe" "$INSTDIR\System\Icons\Library\xp.icl" 2
The ShortCut has no icon 😕
JasonFriday13#edited
Try:

CreateShortCut "$DESKTOP\Starlight.lnk"
"$INSTDIR\Starlight.exe" "$INSTDIR\System\Icons\Library\xp.icl,2"
[edit]I have learnt from experience that using icons in multiple icon sources (e.g. .exe and .icl) in a shortcut, you have to specify the path and filename, then with no space, put a comma, then with no space put the index specifying the offset from the start of the first icon starting at 0. This will give you the icon you need from your .exe or .icl.[/edit]
Afrow UK#
The 3rd parameter of CreateShortcut is for the target files' parameters.

CreateShortCut "$DESKTOP\Starlight.lnk"
"$INSTDIR\Starlight.exe" "" "$INSTDIR\System\Icons\Library\xp.icl" 2

You should take more care when reading the manual.

-Stu