Page 1 of 1
Build project with command line
Posted: Mon May 15, 2006 5:32 am
by crustyzz
Can I build projects using a command line tool?
for example using:
> miabuild.exe -single "C:\\My Projects Folder\\project1\\MyProject.mia"
or something else?
Regards
Posted: Mon May 15, 2006 3:00 pm
by CandiceJones
Yes, of course! The correct command line parameters are described in the help, or if you run the tool without any parameters from the command line.
Posted: Wed May 17, 2006 4:56 am
by crustyzz
Great !
But I have an error when I launch it.
My command lines looks like:
Code: Select all
>miabuild.exe "Path to project file\\MyProject.mia"
that gives:
Code: Select all
InstallAware
Command Line Build Utility
ERROR: '' is not a valid integer value
Program returned code : 3
Do you have an idea ?
Thanks
Posted: Wed May 17, 2006 1:53 pm
by CandiceJones
You build the MPR file, not the MIA file.
oups !!
Posted: Thu May 18, 2006 5:14 am
by crustyzz
oh ! I'm sorry
I think I'm tired
Thanks a lot
Posted: Sun Aug 13, 2006 5:15 pm
by scott
It will be great if you can update the error message for this one. I wasted quite a bit of time trying to figure out what caused that error (I was also attempting to build the .mia file)
Posted: Tue Jan 30, 2007 5:18 pm
by epohl
I second scott's suggestion as I was bitten by this too. Nothing slows down development like non-helpful error messages.
Eric
Re: Build project with command line
Posted: Thu Mar 22, 2012 6:35 am
by chintanpatel7
Hi
I cannot pass variables as parameters during build.
I have following code in script:
Code: Select all
Set Variable COMMANDLINE to $CMDLINE$
if Variable COMMANDLINE Contains (Ignore Case) VERSION
Set Variable VERSION to $VERSION$
End
And this is my command line:
Code: Select all
miabuild.exe "Demo1.mpr" VERSION=10
This does not pass version with value 10. I have tried for variable watch on both variables CMDLINE and COMMANDLINE but both variables are blank. And the VERSION variable is set to the value I have given in wizard. Please let me know where I have done the mistake.
Thanks.
Re: Build project with command line
Posted: Fri Mar 23, 2012 9:02 am
by FrancescoT
Dear User,
first of all I suggest to you to have a look to InstallAware Docs regarding "Building from the Command Line" (as usual press F1 in IA IDE).
By the way, You're trying to build from the command line passing a script variable but the command line build options accepts COMPILER VARIABLE.
For example:
passing: miabuild.exe "MyTest.mpr" MYCOMPILERVAR=1234
In your script should have:
[compiler if Variable MYCOMPILERVAR Equals 1234]
MessageBox: debug, Test Compiler Variable
[compiler end]
Regards