Build conditions in scripts

Got a problem you cannot solve? Try here.
Post Reply
jed
Posts: 15
Joined: Tue Mar 22, 2005 3:24 am

Build conditions in scripts

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply