PDA

View Full Version : Prevent 32 bit install running on 64 bit OS



rhavlick
07-24-2015, 05:34 PM
Hello,

I have a some prereq's / redistributables that are set for 64 and 32 bit OS's that I've used release flags for when building to just pull those. In my redistributable's conditions I've set them to only run on the 32 bit or 64 bit OS, however when I run a 32 bit setup that I've compiled on a 64 bit OS, it fails to run the prerequisites because those conditions aren't met.

Does anyone know if there is a way in like the Install Conditions to do something like:

If Release Flag = x64 then
If the OS is 64 bit
Continue
Else
Exit the setup


Basically I want a 32 bit setup to only run on a 32 bit OS, and a 64 bit setup to only run on a 64 bit OS. If not, fail the setup before the user starts going through the setup process.

Thanks

MichaelU
07-27-2015, 08:21 AM
It sounds like you're looking for the right combination of the ISReleaseFlags (http://helpnet.installshield.com/installshield22helplib/helplibrary/IHelpCustomActionsReleaseFlags.htm) including x64 and VersionNT64 (https://msdn.microsoft.com/en-us/library/aa372497.aspx) not being set. If you work out the correct Conditional Statement Syntax (https://msdn.microsoft.com/en-us/library/aa368012.aspx) for that, you should be able to create a Launch Condition reflecting that.