obj63
21st July 2003 19:52 UTC
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
21st July 2003 21:21 UTC
See CreateShortcut in the NSIS manual.
Also, look in the Examples\MakeNSIS.nsi script for good examples of CreateShortcut usage.
-Stu
Gunny2k2
21st July 2003 21:25 UTC
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
Afrow UK
21st July 2003 21:28 UTC
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