Hi,
I hope someone can help me out with a problem..
I have made a NSIS scripts that compiles a .exe without problems..
my shorcut creation code looks like this:
createShortCut "$DESKTOP\${APPNAME}.lnk" "$INSTDIR\xulrunner.exe" "application\application.ini" "$INSTDIR\application\grene.ico"
The problem is that the target of my shourtcut looks like this after creation:
C:\myapplication\myexe.exe application\application.ini
And i need it to look like this:
"C:\myapplication\myexe.exe" application\application.ini
The default value of "starts in" looks like this:
C:\myapplication\application\defaults\preferences
And it need to look like this:
C:\myapplication
Can someone explain how I should do I would be gratefull!
Best regards
Philip
createShortCut problem
3 posts
To put quotes in quotes, simply use different quote types:
createShortCut "$DESKTOP\${APPNAME}.lnk" '"$INSTDIR\xulrunner.exe"' '"application\application.ini"' "$INSTDIR\application\grene.ico"
The term your looking for with regards to the 'starts in' folder is 'working directory'. It's set by SetOutPath, see here: http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.4
createShortCut "$DESKTOP\${APPNAME}.lnk" '"$INSTDIR\xulrunner.exe"' '"application\application.ini"' "$INSTDIR\application\grene.ico"
The term your looking for with regards to the 'starts in' folder is 'working directory'. It's set by SetOutPath, see here: http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.4
Thank you very much, that solved my problems!