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!
你应该提供完整的路径,路径和索引是两个独立的参数 ,跳过的参数也必须是空的,你不能把它们留下来:
CreateShortCut "$DESKTOP\Brio Gate.lnk" "$INSTDIR\BrioGate.jar" "" "$INSTDIR\myicon.ico" 0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.