PDA

View Full Version : 32/64 bit conditional installation



marker
12-04-2009, 03:32 PM
InstallShield Express 2010 already lets me set up requirments/conditions to that I can conditionally install different versions of software based on the operating system (Windows 2000, XP, Vista, Windows 7). How do further refine requirements/conditions that will install different versions based on XP-32bit, XP-64bit, Vista-32bit, Vista-64bit, etc.

DebbieL
12-07-2009, 09:49 AM
That capability exists only in the Premier and Professional editions of InstallShield. The help has some more info on a few of the things that are available in these editions, but not the Express edition:
Upgrading to the Premier or Professional Editions of InstallShield (http://helpnet.flexerasoftware.com/Robo/BIN/Robo.dll?tpc=/robo/projects/isxhelp16/UpgradeIPWI.htm)

lsramos
12-23-2009, 05:24 PM
We needed a Custom Action that is conditional with OS. One way to distinguish 64-bit systems is to look at the name of the Program Files folder. On a 64-bit system, the 32-bit apps are stored instead in "Program Files (x86)". I created a condition that checks for the existence of this folder in the [WindowsVolume] folder. If Not Found, then its not a 64-bit system, and the Custom Action can proceed.

This approach may not be robust to future changes (please comment if there any gotchas), but with ISExpress, its all I could find to do.

Scott

DebbieL
12-28-2009, 09:45 AM
I'm not sure whether that location is tied to the WindowsVolume, or if the folder can exist on a different drive. In any case, it might be easier to use a condition check in the action itself.

lsramos
12-28-2009, 01:22 PM
It is likely possible that Program Files can exist on other than the root drive where Windows is installed. However, for the vast majority of users, they will be on the same drive. Maybe this solution will help them.