Windows installation failed after trying many different ways to Install & Download error - 0x80070002

Anonymous
2025-03-15T17:23:30+00:00

I started getting Download error - 0x80070002 every time i would try to update windows. And then the MS store stopped working. And whenever i try to open a media file i get the message package couldn't be registered. I tried every single suggestion on the various MS tech support pages.

I also tried resetting and also reinstalling windows - both from the power shell, from a downloaded disk image, and from online. And every single time i tried, it says Operation Failed. Or Windows was not able to be installed. I have tried literally everything and don't know what to do. Are there any suggestions please?

Windows for home | Windows 11 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Ramesh 181.9K Reputation points Volunteer Moderator
2025-03-17T10:56:05+00:00

Thanks, please do the following:

  • Download cbsfix2.reg and save it to a folder on the C drive -- e.g., C:\Fixes
  • Download AdvancedRun from Nirsoft and run it.
  • Using AdvancedRun, launch c:\windows\regedit.exe as TrustedInstaller (see Screenshot)
  • In the Regedit window, click File, and click Import...
  • Dismiss the "Location is not available" message box by clicking OK.
  • In the "Import Registry File" window, in the "File name" text box, type C:\Fixes\cbsfix2.reg and press Enter.
  • After the import is successful, exit Regedit.
  • Restart Windows.

Try to install updates.

Was this answer helpful?

0 comments No comments

49 additional answers

Sort by: Newest
  1. Ramesh 181.9K Reputation points Volunteer Moderator
    2025-03-19T12:04:40+00:00

    Please use the full path to the executable:

    "C:\Program Files\Acelogix\RegBak\regbak.exe" /dir:"C:\RegBack\ " /reg:su /limitcount:7 /overwrite:y /compress:y

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-03-19T11:58:01+00:00

    Hi Ramesh thank you.

    When i typed in: regbak.exe /dir:"C:\RegBack" /reg:su /limitcount:7 /overwrite:y

    i got the following message? Am i putting in the wrong command?

    Was this answer helpful?

    0 comments No comments
  3. Ramesh 181.9K Reputation points Volunteer Moderator
    2025-03-19T11:13:32+00:00

    Hi,

    • "You can revert to normal boot mode now" - does this happen automatically next time i reboot if i don't go through the "clean boot" process? And do i need to go to the Services tab in System configuration and Enable All?
    • "To avoid such issues in the future, please create regular registry hive backups using Acelogix RegBak. It can be scheduled using Task Scheduler." - Apologies but can you please explain to me how to do this? And how to schedule it with Task Scheduler?
    • Run a component cleanup using "dism /online /cleanup-image /startcomponentcleanup". - I'm assuming one should do this on a regular basis?
    1. Please see "Reset the computer to start normally after clean boot troubleshooting" in the clean boot article:

    https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-a97a1807f3dd#id0ebbd=windows_11

    1. To backup the system & current user hives to a folder named RegBack (and keep only the last 7 backups), run the following command. It can be automated using Task Scheduler. regbak.exe /dir:"C:\RegBack" /reg:su /limitcount:7 /overwrite:y

    References:

    https://www.winhelponline.com/blog/automatically-backup-registry-hives-windows-10/#regbak_auto

    Or, open the RegBak "C:\Program Files\Acelogix\RegBak\regbak.chm" chm help file. See "Scheduling a backup".

    Image

    1. The OS does a component cleanup automatically 30 days after an updated component has been installed. If you don't want to wait until then, you can run the manual cleanup. Clean Up the WinSxS Folder | Microsoft Learn.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-03-19T10:59:35+00:00

    Hi,

    Glad it's fixed. You can revert to normal boot mode now.

    1. To avoid such issues in the future, please create regular registry hive backups using Acelogix RegBak. It can be scheduled using Task Scheduler.
    2. Run a component cleanup using "dism /online /cleanup-image /startcomponentcleanup".

    Hi Ramesh, thank you once again, really appreciate it. Re your message - a few questions.

    • "You can revert to normal boot mode now" - does this happen automatically next time i reboot if i don't go through the "clean boot" process? And do i need to go to the Services tab in System configuration and Enable All?
    • "To avoid such issues in the future, please create regular registry hive backups using Acelogix RegBak. It can be scheduled using Task Scheduler." - Apologies but can you please explain to me how to do this? And how to schedule it with Task Scheduler?
    • Run a component cleanup using "dism /online /cleanup-image /startcomponentcleanup". - I'm assuming one should do this on a regular basis?

    Thank you very much Ramesh

    Was this answer helpful?

    0 comments No comments