I'd like to create an icon-shortcut for my jar file with NSIS I've tried so, but after it doesn't display the icon I would to change.
; Shortcuts
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateShortCut "$DESKTOP\Brio Gate.lnk" "$INSTDIR\BrioGate.jar" "..\..\Users\Foo\Desktop\ico.ico,0"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Where do I wrong? Thanks!
You should really provide the full path and the path and index are two separate parameters, also, skipped parameters must be empty, you cannot just leave them out:
CreateShortCut "$DESKTOP\Brio Gate.lnk" "$INSTDIR\BrioGate.jar" "" "$INSTDIR\myicon.ico" 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With