Take the 2-minute tour ×

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.

share|improve this question
Instead of detecting the OS/browser, why not just detect the presence or lack of the actual silverlight plugin? Something like stackoverflow.com/questions/119980/… –  faffaffaff Jun 27 '13 at 19:08
How do you want to handel this situation: Silverlight is not installed but browser is 32-bit ? –  t.niese Jun 27 '13 at 19:12
Please reopen. The question marked as a duplicate is not a duplicate. –  Steve Wortham Jun 27 '13 at 19:25
@SteveWortham check this answer of the mentioned question. Looks like the window.navigator.platform reflects if browser runs as 32 or 64 bit, so probably the question (even if not a duplicate) is still helpful. –  t.niese Jun 27 '13 at 19:38
Umm, Silverlight 5 works fine on 64-bit browsers! IE 9: i.imgur.com/fccYxu1.png and Pale Moon (64-bit Firefox): i.imgur.com/9jOGaIK.png This is on Windows 7 SP1. I'd assume it does on Windows 8, but I could be wrong. –  Rocket Hazmat Jun 27 '13 at 20:01

1 Answer 1

up vote 4 down vote accepted

Thanks to @RocketHazmat, I uncovered that 64-bit browser support was introduced with Silverlight 5. My app was using Silverlight 4. So I upgraded to 5 and now it works with the 64-bit browsers I've tested.

However, there's still one exception. Even Silverlight 5 won't run in the metro version of IE10 under Windows 8. Apparently this is by design as this is a specialized version of IE10 optimized for touch. That still doesn't explain it for me though. I think it's lame.

Of course this means that 64-bit browser detection isn't really a concern anymore. Microsoft just needs to add Silverlight support to this browser and then I'll be happy.


I found an interesting tidbit related to the metro/modern IE10 in Win8. You can instruct the browser that there are plugins on the page that require the "desktop" version of IE.

You just need to add this meta tag to your HTML...


And that'll generate this prompt...

enter image description here

share|improve this answer

Your Answer


