subject: Silverlight 4 Hosting - Clean Up Your Broken Silverlight Installation [print this page] Silverlight 4 Hosting - Clean Up Your Broken Silverlight Installation
If Silverlight isn't working for you and you are getting errors trying to either uninstall, reinstall or upgrade Silverlight the steps below might help you. Note that I'm not listing all the steps to remove every trace of Silverlight from your machine. These steps are just meant to clean up enough so that future attempts to install, upgrade or uninstall don't fail.
Standard warnings about editing your registry apply. Be careful that you only delete what I say to delete below. If you delete too much by accident it is quite likely that you will break something and there is no way to undo accidental changes.
Steps to clean up a machine to fix a broken Silverlight installation:
- In the Control Panel, open the Add/Remove Programs applet (Programs on Vista) and uninstall Microsoft Silverlight if it is shown as installed by clicking on it and then clicking Uninstall or Remove. If you get an error on this step (for example a dialog saying that the msi file cannot be found), just continue on to the next step
- Using regedit, navigate to HKLMSoftwareMicrosoftSilverlight and delete the key.
From an administrator command shell you can do this by running:
reg delete HKLMSoftwareMicrosoftSilverlight /f
- Using Windows Explorer, delete the "Microsoft Silverlight" directory from under Program Files.
From an administrator command shell on an x86 you can do this by running:
rmdir /s /q "%ProgramFiles%Microsoft Silverlight
If you are on a 64-bit version of Windows, substitute ProgramFiles(x86):
If you have any problem with your Silverlight, you can host your site with us. You can only need to spend $5.00/month to get professional Silverlight hosting.