I have a Silverlight application I built back in 2009. Unfortunately, Silverlight is not available for 64-bit browsers. And the usage of 64-bit browsers is just starting to grow, especially with the release of Windows 8. So I want to detect the 64-bit browser and provide a user friendly message stating why the application was unable to load.
I could feasibly pull this off with a bit of Javascript, but the user-agents and such seem to be all over the map. And I've tried navigator.cpuClass
which seems to do what I want in Internet Explorer. It returns x86
on a 32-bit version of IE10. But it returns undefined
in Chrome and Firefox. So I'm looking for a reliable solution for all browsers.
Note that I don't care if the OS is 64-bit or not. That doesn't matter. I'm only concerned about the browser.