Build conditions in scripts

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

Build conditions in scripts

Postby jed » Thu Mar 02, 2006 10:23 pm

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:

Postby MichaelNesmith » Fri Mar 03, 2006 12:38 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 145 guests