Skip to content
⌘ NSIS Forum Archive

icons of shortcuts

4 posts

obj63#

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
Afrow UK#
See CreateShortcut in the NSIS manual.
Also, look in the Examples\MakeNSIS.nsi script for good examples of CreateShortcut usage.

-Stu
Gunny2k2#
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 😁
Afrow UK#
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