0x80070002

0x80070002: Fix Windows Update & App Install Fails

Windows Errors Intermediate 👁 0 views 📅 May 29, 2026

This error means Windows can't find the files it needs. It's not a hardware issue — it's a corruption or path problem. Here's how to fix it.

Quick answer

Run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth, then delete C:\Windows\SoftwareDistribution and C:\Windows\System32\catroot2. Reboot. That fixes 90% of cases.

What's actually happening here

Error code 0x80070002 translates to ERROR_FILE_NOT_FOUND. Windows Update, the Microsoft Store, or an installer can't locate a required file. This isn't a driver issue or a hardware failure. The file was supposed to be there — a downloaded update package, a component store backup, or a temporary installer payload — but it got deleted, corrupted, or never fully downloaded.

On Windows 10 and 11, this often occurs during a Feature Update (like 22H2 → 23H2) or when installing a cumulative update that requires prerequisite files. The Windows Update cache in SoftwareDistribution gets stale or fragmented. The Windows Component Store (WinSxS) can also become corrupt, especially after a failed update rollback or a disk cleanup that nuked too much.

Fix steps

  1. Run System File Checker (SFC)
    Open Command Prompt as admin. Type:
    sfc /scannow
    Let it finish. It'll replace corrupted system files from the local cache. If it finds errors but can't fix them, move to step 2.
  2. Run DISM to repair the component store
    Same admin CMD window. Type:
    DISM /Online /Cleanup-Image /RestoreHealth
    This pulls fresh system files from Windows Update. Takes 10-20 minutes. Don't interrupt it. If your internet is sketchy, use /Source:C:\RepairSource\Windows /LimitAccess with a mounted Windows ISO.
  3. Stop update services
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  4. Clear the update cache
    Delete the contents of C:\Windows\SoftwareDistribution and C:\Windows\System32\catroot2. Don't delete the folders themselves — services will recreate them. Use File Explorer or:
    del /f /s /q C:\Windows\SoftwareDistribution\*
    del /f /s /q C:\Windows\System32\catroot2\*
  5. Restart services and reboot
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    Then shutdown /r /t 0
  6. Retry the update or install
    Go back to Windows Update or run your installer again. It'll download fresh files instead of the corrupted ones.

Alternative fixes if the main one fails

If SFC and DISM won't run or return errors, try these in order:

  • Use Windows Update Troubleshooter — Settings > System > Troubleshoot > Other troubleshooters > Windows Update. It's basic but sometimes resets registry flags.
  • Reset Windows Update components manually — Run the official Microsoft script. It stops services, re-registers DLLs, and flushes DNS. More thorough than step 3-5.
  • Install the update via Microsoft Update Catalog — Go to catalog.update.microsoft.com, search for the KB number, download the standalone package for your architecture (x64/arm64). Double-click to install. Bypasses the local update cache entirely.
  • Perform an in-place repair upgrade — Download the Windows 11/10 Media Creation Tool, run it, and choose "Upgrade this PC now." This reinstalls Windows while keeping your apps and files. Fixes deep component store corruption without a full reset.

Prevention tip

Don't delete C:\Windows\WinSxS manually — ever. It's not "wasted space." That folder is the backbone of Windows servicing. Use the built-in Disk Cleanup tool (cleanmgr.exe) and select "Windows Update Cleanup" to remove superseded updates safely. Also, run DISM /Online /Cleanup-Image /AnalyzeComponentStore once a month to check component store health before it breaks.

Was this solution helpful?