cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Yuri_1
Level 3

Add Redistributable Package with condition

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?
Thanks,
Yuri
Labels (1)
0 Kudos
(3) Replies
chad_petersen
Level 9

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.


https://msdn.microsoft.com/en-us/library/windows/desktop/aa372497(v=vs.85).aspx

Chad
0 Kudos
Yuri_1
Level 3

Thanks Chad for reply.
That is not an option for us.
32-bit installer can be targeted for 64-bit machines.
-Yuri
0 Kudos
chad_petersen
Level 9

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.

Chad
0 Kudos