Prev Previous Post   Next Post Next
Old 8th November 2007, 23:35   #1
Irish2007
Junior Member
 
Join Date: Nov 2007
Posts: 4
Calling an ant script from within a .nsi file

I am trying to run an ant script from within the installer and it is not running properly.

I tried both of the following commands:
Execwait '"$INSTDIR\ant" -f "$INSTDIR\build.xml"'

nsExec::Exec '"$INSTDIR\ant" -f "$INSTDIR\build.xml"'

After the nsExec command I did a Pop $0 and got "error" - is there a way to actually get the error that was produced by the code? (I even tried $1 and $2...)

I can run the ant script from the command prompt without error, so there must be something wrong with my commands... this is my first project with NSIS.

I'm running this on Windows XP, using NSIS version 2.30

Thanks!
Irish2007 is offline   Reply With Quote
 
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