cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
teroman
Level 2

Install different redistributables for x86, x64 and ia64

Hi all,

I'm going to include some large redistributables in my installer, and need to install the correct ones depending on machine arcitecture.

My first thought was to include all in the build and add conditions on them, but the conditions seem only to be on the OS, not the CPU type.


My ideal solution to this would be to be able to produce 3 installers from my project, one for each CPU type with the correct redist files in it. That would allow users to pick whichever they wanted.


Is that possible? If not is there a way to detect the CPU architecture. I have seen some ways of detecting a 32/64 bit difference or and Intel chip, but intel makes x86, x64 and ia64 chips 😞


Thanks for reading.
Labels (1)
0 Kudos
(2) Replies
Jan_Eggers
Level 4

hi there,

u can readout the environment var PROCESSOR_ARCHITECTURE

and build conditions with it
0 Kudos
Michael_Marmack
Level 3

An easier way is to use the internal variables in the installer

Intel64 or Msix64

They will be set to true (or 1) if running the the specific platform type.



Please note that your installer will have to be a 32 bit isntaller and will therefore not be able to use the [ProgramFiles64Folder] property or have access to the 64 bit portion of the registry.
0 Kudos