detect 64-bit explorer and defer flash plug-in load

I have a web page that uses the flash player.  When a client accesses the page using the 64-bit version of windows explorer, the browser attempts to load the flash plug-in.  This becomes a useless exercise for the browser user, because the plug-in doesn't work with 64-bit browser.  

My question is - is there a way for my web page code to detect that the browser software being used in explorer 64-bit and notify the user that the appopriate action is to access the page using a 32-bit browser?  I am trying to avoid the scenario where the user loads the flash player only to get the same result when they access the page again.  

Any assistance appreciated - thanks
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can use 'window.navigator.cpuClass' to tell whether you are on 64bit version or 32bit version...  But that won't do much good when it comes to detecting the version of Internet Explorer cuz you can run 32bit and 64bit IE at the same time on 64bit version of Vista...

Wonder what would be a good measurement on this though...

Ah...  Check the user agent...

Detecting 64-bit Internet Explorer

As machines with more than 4 gigabytes of RAM become more common, more and more users are running 64-bit versions of Windows. For compatibility with 3rd party add-ons, the 32-bit edition of Internet Explorer remains the default on 64-bit systems. However, in some cases it can be useful for websites to recognize when users are visiting using 64-bit systems—for instance, a site may want to know whether to offer a 64-bit executable download.

Tokens in the User-Agent string will enable you to determine whether or not the user is running a 64-bit version of Windows, and whether they are running the 64-bit edition of Internet Explorer.

64-bit IE on 64-bit Windows:

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0)

32-bit IE on 64-bit Windows:

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0)

Incidentally, WOW64 stands for “Windows on Windows 64-bit.”

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.