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
Build project with command line
-
- Posts: 904
- Joined: Thu Dec 22, 2005 7:03 pm
- Contact:
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.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Great !
But I have an error when I launch it.
My command lines looks like:
that gives:
Program returned code : 3
Do you have an idea ?
Thanks
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
-
- Posts: 904
- Joined: Thu Dec 22, 2005 7:03 pm
- Contact:
You build the MPR file, not the MIA file.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 21
- Joined: Thu Feb 16, 2012 11:02 pm
Re: Build project with command line
Hi
I cannot pass variables as parameters during build.
I have following code in script:
And this is my command line:
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.
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.
-
- Site Admin
- Posts: 5360
- Joined: Sun Aug 22, 2010 4:28 am
Re: Build project with command line
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
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
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 24 guests