If you are doing Silverlight development, you are no doubt slapping in the <object> tag or using the <asp:silverlight> control (if in ASP.NET) to host your Silverlight content/application. This is all great, but don't forget about deployment!
When I talk about Silverlight I like to relay a story I heard from one of the Silverlight program managers (PM) a while back. The PM was pretty excited about a feature just completed in Silverlight and one of the samples that had been created. He went home to show his wife and told her to 'go to 'dub-dub-dub-dot-something-dot-com' (yelling from the other room of course) and to tell him what she thought. After a long pause of a few minutes he shouted back 'what do you think?' Her response: 'It's lame.' He was no doubt offended until he walked up to her machine and on the screen saw this:
You see, 'Get Silverlight' means nothing to your mother-in-law (or wife in this matter). Technology means nothing to non-geek users. Content is king. And to your non-savvy users (and even your savvy ones), leaving this default experience isn't a wise one. It doesn't convey that there is anything of value by installing something they might not have. It doesn't even convey what the action is going to be when they 'Get Microsoft Silverlight.' Leaving this experience unchecked leaves your users in the dark as well as a reputation rank downward in my opinion.
NOTE: This site is likely riddled with these badges as seen above. I'm claiming exempt status because they are samples :-).
While in Silverlight 1.0 creating a great install experience was possible, Silverlight 2 makes that process so much easier. In Silverlight 1.0, the use of the silverlight.js file could aid in detection and direction to an alternate experience. This method is still possible in Silverlight 2, and in fact might be a best practice still. Most interactive developers using Flash use some method of script creation in instantiating the Flash host. This is mostly due to the IE EOLAS "click to activate" issue that has been resolved and will remedy in an upcoming IE update.
So that brings a few methods for instantiating the Silverlight control host. You can still use a script method to do the check for you and provide alternate content or redirect to something. You can also still simply include the <object> tag itself. My favorite is using the simple <object> tag and tricking the HTML. You see an object tag might look like this:
<object type="application/x-silverlight-2-b1"> <param name="source" value="ClientBin/CallingServices.xap"/> <param name="onerror" value="onSilverlightError" /> <param name="background" value="white" /> <div id="no-sl" class="install-badge">Some descriptive information</div> </object>
Notice the random HTML after all the params? Browsers will read the HTML like a book (US-English) from top to bottom. They get to the object tag and can't understand it, so will look at the next part of the DOM. Param tags...nope don't get it. Next part. Oh, a <div> element...yep I understand...begin render.
Within here you can put an image or some element with a CSS class that is absolutely positioned, etc. Bottom line is you own that experience. It is now on you, the developer, to ensure that your users aren't just seeing 'Get Silverlight' but are being provided at least some explanation of what they are about to see, why they should install this plugin, etc.
Perhaps you need some inspiration? Here's some examples from some recent sites...
Major League Baseball Video
As you can see, the options are endless from very simple, to heavily branded.
Testing your deployment experience
So now that you've decided you are going to optimized that "no Silverlight" experience, how do you go about testing it? Well, here's a simple trick that I employ to do this. There is no need to uninstall/re-install the runtime on your machine. In fact, this will likely give you headaches in doing so and waste endless minutes :-). Here's a simpler way.
In Internet Explorer you have the ability to manage your add-on experience. To test your "no Silverlight" experience, simply do the following.
To make it easier go to a page with Silverlight content. You can do this without this step, but it will cost you 2 extra clicks and I'm trying to save you time.
Next, go to Tools...Manage Add-ons...Enable or Disable Add-ons:
Now, find Microsoft Silverlight in the Enabled section and change the radio button to 'Disable' and click OK.
You will be prompted with a message which you can just click OK through. The page will be refreshed and the Silverlight plug-in no longer enabled. Now any site you visit will give you the "no Silverlight" experience for you to test your deployment experience. When you want to re-enable, simply repeat the process and choose 'Enable' and you are back in business. No messy control panel uninstall/re-install mess.
I'm not a Firefox power user and couldn't find an easy way to do this rapidly without installing another plugin, so if anyone knows the similar method in Firefox, please enlighten me (or Safari for that matter). I tried searching and found solutions of moving the plugin out of the /plugins folder in Firefox so I'd imagine you could batch script this out. I really like the ease that Internet Explorer provides in managing my own preferences for each add-in running. Looks like this gets even better in IE8. I'm actually surprised it isn't a part of Firefox.
The bottom line is: don't ignore this experience. This is your chance to explain that the user is about to see premium content, a better user experience, a fun game, whatever it is you are trying to convey. I hope this has helped at least some be enlightened on ensuring you make that a work item in your task list and the tip of disabling the add-in is helpful to some.
Please enjoy some of these other recent posts...