Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 5th April 2006, 20:07   #1
stonkers
Senior Member
 
Join Date: Sep 2003
Posts: 188
Command Line compile with \D

OK, I found the post:

SpacesInCommandLine

But I think I've got a slightly different situation. I compile and such using NAnt, and inside of NAnt call NSIS to create my installer. I don't seem to fit the mold in the noted conversation because I have to reference the NSI file in the compile. So my command would look like this:

<exec
program="C:\Program Files\NSIS\makensis.exe"
commandline='/V3 /OInstall.log /DOUT_FILE="D:\Program Files\MyApp\MyApp.exe" InstallMyApp.nsi'
/>

This won't work because /D doesn't support spaces. I also can't make the /D the last argument because InstallMyApp.nsi has to be. Any help? Wouldn't it be easiest to allow quotes on the \D?

Thanks,
Eric
stonkers is offline   Reply With Quote
Old 5th April 2006, 20:53   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Are you sure it does not support quotes?
Using 2.15:
D:\PROGRA~1\NSIS>makensis /DJa="D:\Program Files\MyApp\MyApp.exe" C:\test.nsi

Test.exe shows a MessageBox displaying ${Ja} and shows it as being:
D:\Program Files\MyApp\MyApp.exe

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 6th April 2006, 05:49   #3
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
May be even >makensis /DJa=D:\Progra~1\MyApp\MyApp.exe C:\test.nsi
Takhir is offline   Reply With Quote
Reply
Go Back   Winamp 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