Error: 0x80070645 appears when you try to upgrade Microsoft Security Essentials

SYMPTOMS
After you are prompted to upgrade Microsoft Security Essentials, the upgrade doesn't install and you receive error 0x80070645.
RESOLUTION
To resolve this issue, uninstall Microsoft Security Essentials, delete any remaining registry subkeys, and then manually install the latest version of Microsoft Security Essentials.

Note: Before you uninstall Microsoft Security Essentials, make sure that Windows Firewall is turned on.
Antivirus software helps protect your computer from viruses. You must not download or open files from sources that you do not trust, visit websites that you do not trust, or open email attachments when your antivirus software is disabled. For more information about computer viruses, see the following article in the Microsoft Knowledge Base:129972: How to prevent and remove viruses and other malware



To do this, follow these steps.

Note: You may find it easier to follow the steps if you print this article first.

Step 1: Use Add or Remove Programs to uninstall Microsoft Security Essentials

Windows XP
  1. Click Start, click Run, type or copy and paste appwiz.cpl in the Run box, and then click OK.
  2. Select Microsoft Security Essentials, and then click Uninstall.
  3. Restart the computer.
Windows Vista or Windows 7
  1. Click Start, type or copy and paste Appwiz.cpl in the Search box, and then press Enter.
  2. Right-click Microsoft Security Essentials, and then click Uninstall.
  3. Restart the computer.
If you were able to uninstall Microsoft Security Essentials by using the previous steps, go to Step 4: Reinstall Microsoft Security Essentials. If you were unable to uninstall Microsoft Security Essentials, and some Microsoft Security Essentials components may not be uninstalled, you may be unable to reinstall Microsoft Security Essentials.

If you cannot uninstall Microsoft Security Essentials by using Add or Remove Programs or the Programs and Features item, Step 2: Back up the registry and Step 3: Delete registry subkeys for Microsoft Security Essentials. Step 2: Back up the registry

Important This section, method, or task contains steps that tell you how to change the registry. However, serious problems might occur if you change the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you change it. Then, you can restore the registry if a problem occurs.

For more information about how to back up and restore the registry, see the following articles in the Microsoft Knowledge Base or Windows Help and How to:

To back up the registry in Windows XP, see
322756: How to back up and restore the registry in Windows XP
To back up the registry in Windows Vista, see Back up the registry
To back up the registry in Windows 7, see Back up the registry


To back up the registry, follow the steps for the operating system that you are running.

Windows XP
  1. Click Start, click Run, type or copy and paste regedit in the Run box, and then click OK.
  2. In the navigation pane of Registry Editor, right-click Computer, and then click Export.
Windows Vista or Windows 7
  1. Click Start, type or copy and paste regedit in the Search box, and then click regedit.exe.
  2. In the navigation pane of Registry Editor, right-click Computer, and then click Export.
Step 3: Delete registry subkeys for Microsoft Security Essentials

To have us delete registry subkeys for Microsoft Security Essentials automatically, click the Fix it button or link. Click Run in the File Download dialog box, and then follow the steps in the Fix it wizard.

If you prefer to fix this problem yourself, go to the "Let me fix it myself" section.


Notes
  • This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  • If you are not on the computer that has the problem, save the Fix it solution to a flash drive or a CD and then run it on the computer that has the problem.


Let me fix it myself

Stop the Microsoft Security Essentials Process:

  1. Open Task Manager. To do this, follow the steps for the operating system that you are running:
    • For Windows XP
      1. Click Start, click Run, type or copy and paste taskmgr in the Run box, and then click OK.
    • For Windows 7 and for Windows Vista
      1. Click Start, type or copy and paste taskmgr in the Search box, and then click taskmgr.exe.
  2. Click the Process tab.
  3. Find the msseces.exe file entry. Right-click the entry, and then click End Process. If a confirmation window appears, click End Process.
Stop and disable the Microsoft Security Essentials service:

Windows XP
  1. In Windows XP, click Start, and then click Run.
  2. Type or copy and paste net stop msmpsvc, and then click OK.
  3. Click Start, and then click Run.
  4. Type or copy and paste sc config msmpsvc start= disabled, and then click OK.
Windows Vista or Windows 7

  1. In Windows Vista or Windows 7, click Start, type run in the Search box, and then click Run.
  2. Type or copy and paste net stop msmpsvc, and then click OK.
  3. Click Start, type run in the Search box, and then click Run.
  4. Type or copy and paste sc config msmpsvc start= disabled, and then click OK.


Delete the Microsoft Security Essentials run subkey:

Windows XP
  1. In Windows XP, click Start, and then click Run.
  2. Type or copy and paste regedit, and then click OK. If a User Account Control window appears, click OK.
  3. Click the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  4. In the details pane, click Microsoft Security Essentials, and then click Delete.

Windows Vista or Windows 7

  1. In Windows Vista or Windows 7, click Start, type run in the Search box, and then click Run.
  2. Type or copy and paste regedit, and then click OK. If a User Account Control window appears, click OK.
  3. Click the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  4. In the details pane, click Microsoft Security Essentials, and then click Delete.

Delete the remaining MSE registry subkeys:

Windows XP

  1. Click Start, and then click Run.
  2. Type or copy and paste regedit, and then click OK. If a User Account Control window appears, click OK.
  3. Click the following subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current version\Uninstall\Microsoft Security Client
  4. In the details pane, click Microsoft Security Essentials, and then click Delete.
  5. Under the alphanumeric keys, search for the following entries, right-click each entry, and then click Delete:
    • Microsoft Antimalware Service XX-XX Language Pack, where XX-XX is the installed locale id. Each language locale has its own id. Delete all subkeys that are in this format, regardless of the locale id. This subkey is not present for U.S. English (en-us) installations. 
    • Microsoft Antimalware
    • Microsoft Security Client
  6. Click the following subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Security Client
  7. In the details pane, right-click Microsoft Security Client, and then click Delete.
  8. Click the following subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware
  9. In the details pane, click Microsoft Antimalware, and then click Delete.

Windows Vista or Windows 7

  1. Click Start, type run in the Search box, and then click Run.
  2. Type or copy and paste regedit, and then click OK. If a User Account Control window appears, click OK.
  3. Click the following subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current version\Uninstall\Microsoft Security Client
  4. In the details pane, click Microsoft Security Essentials, and then click Delete.
  5. Under the alphanumeric keys, search for the following entries, right-click each entry, and then click Delete:
    • Microsoft Antimalware Service XX-XX Language Pack, where XX-XX is the installed locale id. Each language locale has its own id. Delete all subkeys that are in this format, regardless of the locale id. This subkey is not present for U.S. English (en-us) installations.
    • Microsoft Antimalware
    • Microsoft Security Client
  6. Click the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Security Client
  7. In the details pane, right-click Microsoft Security Client, and then click Delete.
  8. Click the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware
  9. In the details pane, click Microsoft Antimalware, and then click Delete.


Delete installer subkeys:

Windows XP
  1. Click Start, and then click Run.
  2. Type or copy and paste regedit, and then click OK. If a User Account Control window appears, click OK.
  3. Locate the following subkey: HKEY_CLASSES_ROOT\Installer\Products
  4. Under the alphanumeric keys in the ProductName field, search for the following entries. Note the numbers for each instance that you find. Right-click each entry, and then click Delete:
    • Microsoft Security Client
    • Microsoft Antimalware
    • Microsoft Antimalware Service XX-XX Language Pack, where XX-XX is the installed locale id. Each language locale has its own id. Delete all subkeys that are in this format, regardless of the locale id. This subkey is not present for U.S. English (en-us) installations. 
Windows Vista or Windows 7
  1. Click Start, type run in the Search box, and then click Run.
  2. Type or copy and paste regedit, and then click OK. If a User Account Control window appears, click OK.
  3. Locate the following subkey: HKEY_CLASSES_ROOT\Installer\Products
  4. Under the alphanumeric keys in the ProductName field, search for the following entries. Note the numbers for each instance that you find. Right-click each entry, and then click Delete:
    • Microsoft Security Client
    • Microsoft Antimalware
    • Microsoft Antimalware Service XX-XX Language Pack, where XX-XX is the installed locale id. Each language locale has its own id. Delete all subkeys that are in this format, regardless of the locale id. This subkey is not present for U.S. English (en-us) installations. 





Step 4: Reinstall Microsoft Security Essentials
  1. Visit the Download Microsoft Security Essentials website.
  2. Select the appropriate language and operating system, and then click Download.
  3. Click Run, and then follow the instructions to complete the installation.
  4. Restart the computer.
Did this fix the problem?
  • If you were able to install Microsoft Security Essentials, the problem is fixed and you are finished with this section. If the problem is not fixed, you can contactMicrosoft Support.
  • We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave a comment on the "Fix it for me" blog or send us an email message.


MORE INFORMATION
For more information about Microsoft Security Essentials, see the Microsoft Security Essentials website.

For information about support for Microsoft Security Essentials, see the Help and Support for Microsoft Security Essentials website.
Additional Resources
kbfixme kbmsifixme KB2483120
Properties

Article ID: 2635095 - Last Review: 05/25/2012 18:33:00 - Revision: 5.0

  • KB2635095
Feedback