Page 1 of 1

Build conditions in scripts

Posted: Thu Mar 02, 2006 10:23 pm
by jed
Is there a way to define a condition for the script that allows only certain script commands to be executed. Similar to how compiler defines work?

I'd like to have TRIAL and RELEASE versions of my build script but maintaining two separate scripts for this is not a desired outcome.

Currently using InstallAware 2005SE.

Posted: Fri Mar 03, 2006 12:38 am
by MichaelNesmith
Easily done using compiler variables: Project | Options | Project | Compiler Variables.

You could define a variable called EDITION then branch in the setup script at compile time using Compiler Variable If/Else/End commands, testing for EDITION's equality to TRIAL, RELEASE, etc.

You may set compiler variables from the command line as well using the form VAR=VALUE when using miabuild.exe.