View Single Post
Old 10th August 2020, 23:21   #8
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,320
PHP Code:
Section Main app
SetOutPath 
"$INSTDIR"
File c:\mystuff\app.exe
SetOutPath 
"$INSTDIR\.icon"
File c:\mystuff\m.ico
SectionEnd

Section 
"Desktop shortcut"
CreateShortcut "$DESKTOP\app.lnk" "$INSTDIR\app.exe" "" "$INSTDIR\.icon\m.ico" 0
SectionEnd 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote