How to clean a corrupted Silverlight installation and then reinstall Silverlight

Note

Silverlight has retired and is officially out of support. For more information, see Silverlight End of Support.

Symptoms

When working with Microsoft Silverlight, you may encounter the following scenarios:

  • Install Microsoft Silverlight.

  • Upgrade to another version of Microsoft Silverlight.

  • Uninstall Microsoft Silverlight.

  • Microsoft Silverlight doesn't work as expected.

Attempts to restart the computer and try to upgrade, install or uninstall Microsoft Silverlight again end in the same results.

Cause

This issue can occur if an existing installation or uninstall has become corrupt.

Resolution

To automatically uninstall Microsoft Silverlight, click the button in the "Fix it for me" section. If you would rather verify and update these keys yourself, go to the "Let me fix it myself" section.

Fix it for me

Note

  • This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  • If you aren't currently using the computer that is experiencing this problem, you can save the automatic fix to a flash drive or to a CD, and then you can run it later on the computer in question.

When the Fix it solution has completed, install the latest version of Microsoft Silverlight.

Let me fix it myself

To resolve this issue yourself, follow these steps:

Click Start and type Notepad in the Search box.

Double-click on Notepad from the list of results above.

Copy and then paste the following text into Notepad.

reg delete HKLM\Software\Microsoft\Silverlight /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\D7314F9862C648A4DB8BE2A5B47BE100 /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D7314F9862C648A4DB8BE2A5B47BE100 /f
reg delete HKEY_CLASSES_ROOT\TypeLib\{283C8576-0726-4DBC-9609-3F855162009A} /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\install.exe /f
reg delete HKEY_CLASSES_ROOT\AgControl.AgControl /f
reg delete HKEY_CLASSES_ROOT\AgControl.AgControl.5.1 /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00} /f
rmdir /s /q "%ProgramFiles%\Microsoft Silverlight"
rmdir /s /q "%ProgramFiles(x86)%\Microsoft Silverlight"
  1. Select File > Save As and type CleanSilverlight.cmd.

  2. In the Save as type box, select All Files (.).

  3. In the Save in box, select Desktop, and then select Save.

  4. On the File menu, select Exit.

  5. Right-click the CleanSilverlight.cmd file on your desktop and select Run as administrator.

  6. When the uninstall completes, right-click the CleanSilverlight.cmd file on your desktop and select Run as administrator a second time.

  7. Once the uninstall has completed, install the latest version of Microsoft Silverlight.

  8. Delete the CleanSilverlight.cmd file from your desktop.

More information

Have other questions? To obtain free support, check out our Microsoft Community. There, you can search for answers or ask other users specific questions. Click the following link to visit the Microsoft Community Forums.