Command Line Build - Silent

Got a problem you cannot solve? Try here.
MobileMark II
Posts: 19
Joined: Thu Nov 03, 2005 11:58 am
Contact:

Command Line Build - Silent

Postby MobileMark II » Thu Nov 17, 2005 6:29 pm

Is there a way to kick-off a command line build, via a batch file, without the progress dialog displaying?

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Nov 17, 2005 8:34 pm

Sure, you may use batch files to kick off builds, and multiple ones in sequence; however the build process will not be silent and it will display the progress dialog.

Dana Epp
Posts: 29
Joined: Wed Dec 01, 2004 2:27 pm

Postby Dana Epp » Mon Nov 21, 2005 5:08 pm

Although you cannot supress the dialog itself, you can automate the building so you don't have to watch it without having to cludge a batch file. ;-)

Here is a node you can add to a nant script to do this nice and cleanly:

Code: Select all

<target name="installer" description="Build Installer">
      <exec program="miabuild">
            <arg value="c:\\path\\to\\YourSetup.mpr"/>
            <arg value="c:\\path\\to\\YourSetupDir\\" />
            <arg value="1" />
      </exec>
</target>


This of course assumes you have miabuild in your path and are targeting a compressed single self installing exe (which is the buildtype arg 1). I use this for our automated nightly builds, and it works great. Setup a nightly Scheduled task to do a "nant installer" and be done with it.
---
Regards,
Dana Epp


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 145 guests