Old 28th March 2012, 21:53   #1
Rvn
Junior Member
 
Join Date: Mar 2012
Posts: 2
createShortCut problem

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
Rvn is offline   Reply With Quote
Old 29th March 2012, 07:01   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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
MSG is offline   Reply With Quote
Old 29th March 2012, 20:13   #3
Rvn
Junior Member
 
Join Date: Mar 2012
Posts: 2
Thank you very much, that solved my problems!
Rvn is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump