I need to detect whether the version of Windows is 32 or 64 bit... But the OS object only seems to return the major version of Windows. Any ideas?
Thanks!
Printable View
I need to detect whether the version of Windows is 32 or 64 bit... But the OS object only seems to return the major version of Windows. Any ideas?
Thanks!
Use the "OS Information" object instead of the "OS" object. It has two conditions for 32 bit or 64 bit. ;)
Perfect! Thanks!
Just a quick update... The OS Information object wouldn't deploy to the WinXP system I was testing on. My compiled app crashed with an error. So to work around, I removed the object and redid the logic to work with the Registry2 object.
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\Cen tralProcessor\0\Identifier will return a string with the CPU family. If that string contains "x86" then it's 32-bit. Otherwise it's 64.