I've been getting lots of questions on how to check to see if Silverlight is already installed. This is actually very easy to do, but has somehow slipped through the cracks (I even missed it when writing my Silverlight book -- DOH!) -- anyway -- the Silverlight.js library offers how to do this as well as lots of other goodies.
First, you can check to see if Silverlight is installed by looking at the
variable. Simple, huh? This will return true is Silverlight is installed and false if not.
While you're doing that, you may also want to see what browser and OS you are currently running.
which will return one of the following values: 'MSIE', 'Firefox', 'Safari' or 'Unsupported'.
which will return one of the following values: 'Windows', 'MacPPC', 'MacIntel', 'Unsupported'
So, using these values, you can make your installation experience as flexible as possible :)
Also, don't forget about the inplaceInstallPrompt property on the control itself.
PingBack from http://blogs.msdn.com/webnext/archive/2007/10/25/zero-to-hero-how-to-check-if-silverlight-is-installed.aspx
Technorati Tags: Silverlight del.icio.us Tags: Silverlight I've been getting lots of questions on
Silverlight Cream for October 25, 2007 -- #112