Click here to Skip to main content
15,881,882 members
Articles / DevOps / Testing
Tip/Trick

Test custom silverlight installation without uninstalling silverlight

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
6 Jan 2011CPOL3 min read 16.4K   1  
check how your custom install screen will look, without uninstalling silverlight

Introduction


Many times user dont have silverlight on their computer so you have to create a custom installation screen. To test that you will have to uninstall silverlight which quiet troublesome, In this article I will show you step by step how to test the custom install screen without uninstalling silverlight from your test computer.


Content


How many times have you came across situation where you need to test how your custom silverlight installation would look on a client’s PC who do not have the silverlight plug-in installed. Recently one of my friend had this problem and found him self in trouble by trying to uninstall the silverlight plug-in and manually changing the registry entry he wasted couple of hours uninstalling and installing silverlight and cleaning windows registry.


A very simple solution to this problem is to disable the silverlight plug-in from the browser settings.


We will see how to disable the silverlight plug-in for popular browsers like



  1. IE 8
  2. Firefox
  3. Chrome

For IE 8 running on Windows 7 you need to right click on IE and select run as administrator, once the IE is opened click on tools tab and select Manage Add-ons.


1.jpg     2.jpg

After that you need to select the ‘Toolbar and Extension’ then on the right side panel under Microsoft Corporation you will find Microsoft Silverlight. At the bottom of the dialog box a click on the Disable button will do the trick, once the plug-in is disabled the browser will behave as if the plug-in is not installed.


3.jpg


For IE 6 and Windows XP the steps are more or less the same, open IE 6 go to the Tools menu and select the Internet Options.


4.jpg


Now click on the button named as “Managed Add-ons…” that will open a the Add on Manger window , scroll down to select the Microsoft Silverlight and then in the settings section select the disable radio button.


5.jpg


6.jpg


For Firefox version 3.6.3 on Windows 7 it is more simple all you need to do is just go to the tools menu select the Add On option and a dialog box will pop-up


7.jpg


now click on Plugins and scroll to find the Silverlight Plug-in there you will find the Disable button.


8.jpg


For Google Chrome version 5.0.375.99 we will have to write some command line arguments because chrome has not provided any fancy UI to disable/enable plugin’s. Already many people has requested/complained about getting nice UI.


Anyway to disable the silverlight plugin all you need to do is run this command line but there is a little problem it this will disable all the plugin’s for Chrome.


chrome.exe -disable-plugins

and to enable as you might have guess the command line is


chrome.exe -enable-plugins

for my Win 7 machine the chrome.exe is installed at this location

C:\Users\loginname\AppData\Local\Google\Chrome\Application\


Well I found out two more things while writing this post


  1. First is that silverlight cannot be installed on 64-bit version of IE8 you will get a message as below.
  2. 9.jpg


  3. Second is that IE 7 installed on Windows 7 cannot have silverlight
  4. 10.jpg

Points of Interest



  1. How to create a custom installation screen
    http://michaelcrump.net/archive/2010/11/06/customize-the-silverlight-installation-experience-in-about-15-minutes.aspx
    http://www.netmag.co.uk/zine/expression/create-a-custom-silverlight-install-experience
  2. Silverlight install experience best practices
    http://timheuer.com/blog/archive/2008/12/02/silverlight-install-experience-best-practices-netflix.aspx
  3. 3) Link to the article on my blog
    http://avikas.blogspot.com/2010/07/test-silverlight-installation-screen.html

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
My name is Vikas Amin ,my childhood dream was to be a rocket scientist so many times ended with burned hand meshing with firecracker rockets. Now I mesh with computer's using C#,VC++,C,C++,VB,ASP,Silverlight,WPF,WCF,Assebly language some vbscript and javascript.

Comments and Discussions

 
-- There are no messages in this forum --