This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Detect 64-bit Vista as O/S?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
01:47 PM
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
Thanks,
Don Metzler
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
04:25 PM
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
Now...how to read that environment variable in InstallShield?
Thanks,
Don
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2008
05:08 PM
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].
In any case, you can get the value of an environment variable in MSI using the Formatted expression [%VarName].
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2009
02:48 PM
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.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)