cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmetzler
Level 6

Detect 64-bit Vista as O/S?

Is there an internal variable that is set if the target system is running 64-bit Windows Vista?

Thanks,

Don Metzler
Labels (1)
0 Kudos
(3) Replies
dmetzler
Level 6

It appears I can read the environment variable PROCESSOR_ARCHITECTURE and see if it is "AMD64"

Now...how to read that environment variable in InstallShield?

Thanks,

Don
0 Kudos
RobertDickau
Flexera Alumni

If you're using MSI, perhaps some combination of VersionNT64, WindowsBuild, and MsiNTProductType would detect that version?

In any case, you can get the value of an environment variable in MSI using the Formatted expression [%VarName].
0 Kudos
bikeoid
Level 3

dmetzler wrote:
It appears I can read the environment variable PROCESSOR_ARCHITECTURE and see if it is "AMD64"

Now...how to read that environment variable in InstallShield?




You can't, at least not in InstallShield 2009.

GetEnvVar ("PROCESSOR_ARCHITECTURE", svArch );


You'd expect this to return the environment variable PROCESSOR_ARCHITECTURE in svArch - instead they hard coded it as "x86" for some inscrutable reason, even on systems that have AMD64 in the environment variable.
0 Kudos