Skip to content
⌘ NSIS Forum Archive

Change the picture to shortcut

3 posts

emulienfou#

Change the picture to shortcut

hello, i want to change the icon picture to my shortcut:

example: CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\cs lan.lnk" "$INSTDIR\hl.exe"" -game cstrike"

and i want to whange the icon by default by an other icon?

sorry for the language but i'm french
sgiusto#
try something like this:
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\cs lan.lnk" "$INSTDIR\hl.exe"" -game cstrike" "Path to file containing icon resource (exe or dll)" <number of icon resource in file>

for example:
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\cs lan.lnk" "$INSTDIR\hl.exe"" -game cstrike" "$INSTDIR\hl.exe" 3

will use icon #3 form hl.exe