• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to tell x64 from 32 bit via registry?

SoulAssassin

Diamond Member
So I'm working on merging two scripts I wrote, both do the same thing but one is for x64 and one is for 32-bit...drops different binaries. Having a little trouble finding an automated method for determining the flavor of the OS. Best I can find is checking for HKEY_LOCAL_MACHINE\Software\WOW6432node and if it exists then it's x64, if not it's 32-bit. It will probably work but I don't think it's 'clean'.

Anyone know of a better way to determine if it's 32 or 64 bit?


not sure if it's better to post this in OS, software for Windows or programming...I reserve the right to cross post this if I don't get any responses here. 🙂
 
So I'm working on merging two scripts I wrote, both do the same thing but one is for x64 and one is for 32-bit...drops different binaries. Having a little trouble finding an automated method for determining the flavor of the OS. Best I can find is checking for HKEY_LOCAL_MACHINE\Software\WOW6432node and if it exists then it's x64, if not it's 32-bit. It will probably work but I don't think it's 'clean'.

Anyone know of a better way to determine if it's 32 or 64 bit?


not sure if it's better to post this in OS, software for Windows or programming...I reserve the right to cross post this if I don't get any responses here. 🙂

Easiest way of all is check for Program Files(x86) directory. It only exist on 64 bit.
 
Back
Top