cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

How to judge whether a system is 32 bit or 64 bit?

Could you give information about
how to judge whether a system is 32 bits or 64 bits?
Thanks.
Labels (1)
0 Kudos
6 Replies
Highlighted
Flexera beginner

Re: How to judge whether a system is 32 bit or 64 bit?

You've got Check Platform rules that you can put on your actions.
0 Kudos
Highlighted
Pilgrim

Re: How to judge whether a system is 32 bit or 64 bit?

but what you say checks only whether it is windows platform, not about whether it is 32 bit or 64 bit
0 Kudos
Highlighted

How to judge whether a system is 32 bit or 64 bit?

Check Architecture rules and you can put on your actions.

Regards
Avudaithangam
0 Kudos
Highlighted
Pilgrim

Re: How to judge whether a system is 32 bit or 64 bit?

The Check platform or Check Architecture rule would be execute based upon the Java being used.

You may use WMIC command to get the system architecture or you can use Windows registry to get the output.

E.g.
wmic cpu get DataWidth


HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE
0 Kudos
Highlighted
Pilgrim

Re: How to judge whether a system is 32 bit or 64 bit?

PROCESSOR_ARCHITECTURE is also a standard windows system environment variable. You can access it using $lax.nl.env.PROCESSOR_ARCHITECTURE$.
0 Kudos
Highlighted
Pilgrim

Re: How to judge whether a system is 32 bit or 64 bit?

I have been told by Flexera support that check arch in Windows will return the bitness of the OS and not the JVM as you would normally expect from os.arch.
0 Kudos