View Full Version : Add Redistributable Package with condition

07-26-2017, 12:10 PM
I have InstallScript MSI project with two releases, one for 32-bit and another for 64-bit.
I need to add MS Visual C++ Redistributable Package (x86) for 32-bit and (x64) for 64-bit release.
How to add condition which Redistributable Package to add for each release?

07-27-2017, 09:24 AM
One way is you can use the VersionNT64 property as a Condition to determine which bitness you are running on and it will fire the correct one. The VersionNT64 is only set on a 64-bit OS. The other VerionNT is set on both 32-bit and 64-bit so not as handy for telling one from the other.



07-27-2017, 10:38 AM
Thanks Chad for reply.
That is not an option for us.
32-bit installer can be targeted for 64-bit machines.

07-27-2017, 11:44 AM
Open up the PRQ files for each redistributable package in the Prerequisite Editor and go to the Conditions tab and see what they are currently set to. It is possible to Modify any existing Conditions or add others. If you click on Add and then choose the radio button named "Setup is running on a specified platform" then you can tailor it to run under any number of other conditions and you can Add as many Conditions are you need here.

The dropdown list has choices for all the OSes that are supported in both bitness. You can hopefully come up with a combination that suits your needs. Everyone seems to have different needs that each other so this is fairly flexible.