Archive: icons of shortcuts


icons of shortcuts
How do you change the name of the short cut on the start menu and how do you change the icon so once the program is installed it shows that. My shortcut is for space.exe and I want it to say "The Space Game" instead of just "space" and I want to change the icon.

Thanks again for all help

Joe


See CreateShortcut in the NSIS manual.
Also, look in the Examples\MakeNSIS.nsi script for good examples of CreateShortcut usage.

-Stu


Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\${MUI_PRODUCT}"
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\The Space Game.lnk" "$INSTDIR\space.exe" "" "$INSTDIR\space.exe" 0
SectionEnd

that should do it :D


Please use code paremeters around your scripts like so:


Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\${MUI_PRODUCT}"
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\The Space Game.lnk" "$INSTDIR\space.exe" "" "[path to icon]" 0
SectionEnd

It just prevents long strings being forced onto a new line.


-Stu