Page 1 of 1
Command Line Build - Silent
Posted: Thu Nov 17, 2005 6:29 pm
by MobileMark II
Is there a way to kick-off a command line build, via a batch file, without the progress dialog displaying?
Posted: Thu Nov 17, 2005 8:34 pm
by sinan
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.
Posted: Mon Nov 21, 2005 5:08 pm
by Dana Epp
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.