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
icons of shortcuts
4 posts
See CreateShortcut in the NSIS manual.
Also, look in the Examples\MakeNSIS.nsi script for good examples of CreateShortcut usage.
-Stu
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 😁
CreateDirectory "$SMPROGRAMS\${MUI_PRODUCT}"
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\The Space Game.lnk" "$INSTDIR\space.exe" "" "$INSTDIR\space.exe" 0
SectionEnd
that should do it 😁
Please use code paremeters around your scripts like so:
-Stu
It just prevents long strings being forced onto a new line.
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\${MUI_PRODUCT}"
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\The Space Game.lnk" "$INSTDIR\space.exe" "" "[path to icon]" 0
SectionEnd
-Stu