Unfortunately that will not work for me, because nant is not launching
the installer directly.  I'm launching the process remotely, which
requires my nant exec task to call a vbs script locally, and the vb code
starts the process on the remote machine.  The vbs script does not wait
for the remote process started to complete before the vbs itself
completes.  

I'm a few steps removed from the actual installer process due to remote
execution and that the installshield spawns into another process when
launched from cmd line.

-Steve

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 8:30 AM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Any way to do a while loop?

Steve,

You can spawn the installation, and then wait for it to finish.

For example:

        <exec spawn="true" pidproperty="install.pid" ... />
        ...
        <waitforexit pid="${install.pid}" />

Note:
You'll need a recent version of both NAnt and NAntContrib for this.

Gert

-----Original Message-----
From: Steve Kapinos [mailto:[EMAIL PROTECTED] 
Sent: maandag 10 november 2008 14:16
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Any way to do a while loop?

Part of my script must wait until an installation completes, but this
installation spawns off into another process, so the exec task does not
wait for it to complete before finishing and the nant script continues
to march on.

Right now for a quick hack, I have a sleep timer in the script to simply
wait a fixed time before moving on.  I would like to replace this with a
loop that will check for the condition that lets me know the install is
complete, and sleep until it's true.

Any suggestions on how to do this in nant?  There seems to be no task
like 'while' I can use, only fixed loops like fornext.

Best method I have right now is to alternatively do this logic in a
batch file or vbs and do it totally outside of nant.  Anyone have a
cleaner idea?  I'd like the control logic to stay in nant if possible

-Steve

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.8.6/1765 - Release Date:
11/3/2008
4:59 PM


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to