Choose the version of Internet Explorer 11 for Windows 7 you need Internet Explorer 11 for IT Professionals and Developers-Windows 7 64-bit Edition and Windows Server 2008 R2 64-bit Edition. As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications. In the following 'hello world' example, many connections can be handled concurrently. Upon each connection the callback is fired, but if there is no work to be done, Node 64 bit will sleep.
Active3 months ago
I want to offer the right version of a download. The versions I have are:
Detecting Linux using the User Agent field is easy; but is it possible to reliably figure out if Windows is 32-bit or 64-bit?
![]()
Users might be using weird browsers - IE and Firefox are common, and we probably have an Opera user somewhere; maybe a Chrome user too. I know that 64-bit Windows 7 ships with 32-bit and 64-bit versions of IE, and I'd like to send them both the 64-bit version of my download.
(Edited to add: I know that I should provide all the options, and I will. But people don't read the options. So I wanted to provide the right download by default, to improve usability. Of course, while this is helpful if I get it right, it's extremely unhelpful if I get it wrong. And from the answers so far, it doesn't look like there's a reliable way of doing this).
user9876
user9876user9876
8,45866 gold badges3434 silver badges6161 bronze badges
12 Answers
Try this, looks for WOW64 (32-bit on 64-bit) or Win64 (native 64-bit) in the user-agent string.
SmartManoj
2,54211 gold badge1414 silver badges3737 bronze badges
saschabeaumontsaschabeaumont
20.5k44 gold badges5656 silver badges8383 bronze badges
I've done some tests. Here are the results, hope it helps:
Free Javascript Download For Windows 7 64 Bit
So far i've used this code:
mgabor6mgabor6
Analysing around 14000 unique user-agents (from here), I've come up with the following strings to look for:
Additionally, although they have different instruction sets and are not compatible with Intel x86_64, you may want to detect the following:
Beware though, don't just look for anything containing '64' or even 'x64'. Chrome's build numbers, spiders/bots, libraries, .NET versions, resolutions, etc. may also contain the string 'x64' while still being a 32-bits (or other) OS.
Note that you can search for all those strings case-insensitively.
I have not been able to find anything on ARM. Perhaps someone else? Please edit, it is a community wiki.
You can check the
window.navigator.platform and the window.navigator.cpuClass .
I'm not sure your situation, but I would consider just doing what most other sites do and let the user choose which download they get. They could be downloading it for another machine, to put on a flash device, or just may simply want the 32-bit version to run on their 64-bit box. Whatever reason, I would rather have the choice.
RC.RC.
23.4k77 gold badges6565 silver badges8989 bronze badges
The most reliable solution would be to create a 32bit loader application that detects the architecture and then downloads and installs the appropriate version of your application.
I've checked the other two answers from RC and Pino. They both do not work because of the same problem as you suggest - 32-bit IE on 64-bit Windows will wrongly identify the platform as 32-bit. As most people run 32-bit IE on 64-bit Windows (many plugins e.g. Flash are not available in 64-bit), there will be a lot of innacurate identifications
Lee
Lee AtkinsonLee Atkinson
1,20311 gold badge1616 silver badges2929 bronze badges
Not with 100% certainty as you say the browser could be a 32bit version while the OS a 64bit.
To detect the browser, please try the following code:
CPU : ia64
For IE.
Commercial Product : https://www.cyscape.com/showbrow.aspx
LiamBLiamB
11.6k1717 gold badges6969 silver badges107107 bronze badges
For 64-bit Windows with 64-bit IE
window.navigator.platform will be 'Win64' and window.navigator.cpuClass will be 'x64'.
For 64-bit Windows with 32-bit IE,
window.navigator.platform will be 'Win32' and window.navigator.cpuClass will be 'x86'.
For 32-bit Windows,
window.navigator.platform will be 'Win32' and window.navigator.cpuClass will be undefined (I think).
-
Source: I made an app that uses JavaScript to determine if someone is using a 32 bit or 64 bit processor. You can see the code here on GitHub.
peterhurfordpeterhurford
I resumed the results of the nice search above into these JS functions. Hope they can help everybody here to catch up a quick response to their needs (and, as well, to mine too !)
Test it:
Windows 7 64-bit Iso
Thanks to everyone!
Sandro RosaSandro Rosa
I used following code:
It worked everywhere expect Mac computers. And unfortunately seems that it's not possible to get that information via JavaScript :(. However one more trick could be done there. Because Adobe didn't support flash player on x64 browsers, you can just try to detect it. If detection is successful, than it is definitely 32 bit browser, if no, than it's 32 bit browser without flash plugin or it's 64 bit browser. Because penetration rate of Flash player is quite huge(see http://www.adobe.com/products/player_census/flashplayer/version_penetration.html), this should be good enough to at least detect x32 browser under Mac.
GermanZGermanZ
64-bit IE on 64-bit Windows for any Internet Explorer browser
stealthyninja
9,6601010 gold badges4242 silver badges5050 bronze badges
ashishashish
Both window.navigator.cpuClass and window.navigator.platform return the browser platform. Not the system platform. So if you are running a 32-bit browser on a 64-bit system then both varibales would return 32-bit. Which would be incorrect.
DanDan
I've found this old question and thought updating with a recent open source library I found: https://github.com/faisalman/ua-parser-js
According to the docs, the method
getCPU() returns { architecture: ' } , with the following possible values: 68k, amd64, arm, arm64, avr, ia32, ia64, irix, irix64, mips, mips64, pa-risc, ppc, sparc, sparc64 .
Descargar Javascript Para Windows 7 64 Bitsdon
1,19899 gold badges2525 silver badges5252 bronze badges
Javascript Download Windows 7Not the answer you're looking for? Browse other questions tagged javascript64-bitoperating-systemuser-agent or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |