If statement format for calling executables depending on OS

Got a problem you cannot solve? Try here.
TimMayert
Posts: 9
Joined: Thu Jul 12, 2007 3:55 pm
Location: Calgary, Alberta, Canada
Contact:

If statement format for calling executables depending on OS

Postby TimMayert » Tue Jul 17, 2007 2:50 pm

I am new to InstallAware and I am in the process of evaluating the product so I and trying to convert one of my installs built with InstallShield 12 to IA 7.

I have added all the files and I am now looking at custom actions. Some of them are simple exe calls with parameters. But I need to know how to call one of these files it the OS is a 32 bit system and one if the OS is a 64 bit system.

What would the if statement look like for these?

Thanks,
Tim Mayert
SMART Technologies Inc.

Build and Install Engineer
www.smarttech.com

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jul 17, 2007 6:41 pm

You'd first call Get System Settings and capture the 64 bit state into a variable.

Then you'd do an If..Else..End block, testing for this variable, and call Run Program inside the appropriate block for each program you want to run.

Of course, you can also do anything else inside the If block, such as Install Files, etc...InstallAware can actually let your MSI's execution branch out at runtime!
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 124 guests