cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine whether a machine is x64 or x32

maryjane_steele2
Active Participant
0 Kudos

Is there a way via GUI Scripting that I can determine whether the OS is x64 or x32 in order to set the correct registery values?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

In SAP Installation server scripts you can check it with this:

If "%WOW64MODE%" = "true" Then

...the OS is 64bit

Else

...the OS is 32Bit

End If

br,

Ossi

Answers (2)

Answers (2)

jude_bradley
Advisor
Advisor
0 Kudos

In a Windows 64bit OS, there will be a registry subfolder WOW6432Node under the Software

folder

eg:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node

HKEY_CURRENT_USER\Software\Wow6432Node

Jude

fredrik_borlie
Contributor
0 Kudos

For sure use the registry to discover it.

I have not done it my self. but there are some I would try.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MEIx64]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows x64]

From microsofts KB

HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0


http://support.microsoft.com/kb/556009

However I have never tried what this parameter looks like if you run 32 bits on 64 bits architecture.