NS_E_REBOOT_REQUIRED (0XC00D2AFB) Fix That Actually Works
That 'Installation was not successful' error? Usually means Windows Media Player or a codec pack needs a restart. Here's the fix.
Yeah, that 0XC00D2AFB error is annoying. You're just trying to install a codec pack or update Windows Media Player, and it slaps you with 'Installation was not successful' and that cryptic hex code. I've seen this on at least a dozen machines over the years — mostly Windows 10 and 11 boxes.
The Fix: One Restart
I know it sounds too simple, but restart your computer. That's it. Nine times out of ten, the error means Windows Media Player or the Media Foundation framework has a pending reboot from a previous install that wasn't completed. The installer's check for a clean state fails, and it throws NS_E_REBOOT_REQUIRED.
- Save your work.
- Click Start > Power > Restart.
- After reboot, run the installer again.
I had a client last month whose entire print queue died because of this same error after installing a printer driver that also installed a codec. A restart cleared it, and the codec pack installed fine afterward.
Why It Works
Windows Media Player and related components (like the Media Foundation framework) keep a flag in the registry that says 'a reboot is pending'. That flag blocks any new installs of media-related components. The flag is usually set when you install something that modifies system files — like a codec pack or a Windows update for Media Player — but the installer doesn't finish the reboot step. Restarting clears that flag, letting the new installer proceed.
Under the hood, it's checking a registry key at:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
If that key has entries, Windows thinks a reboot is needed. The error code 0XC00D2AFB is just the installer's way of saying 'nope, not now'.
Less Common Variations
1. The Reboot Didn't Help
Sometimes the error persists even after a restart. That usually means the registry key is corrupted or stuck. Here's the safe way to check:
- Press Win + R, type
regedit, hit Enter. - Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager. - Look for a value named PendingFileRenameOperations. If it exists and has data, right-click and delete it. (But only if you're sure no other installs are pending. I'd only do this if the error won't go away after a reboot.)
I had a case where a botched Windows update left that key with orphaned entries. Deleting it let the codec install run clean.
2. Corrupted Media Foundation Files
If restarting and clearing the registry don't work, you might have corrupted Media Foundation files. Open Command Prompt as admin and run:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
Then restart and try again. This fixes the underlying system files that the installer relies on.
3. Third-Party Codec Packs That Won't Uninstall Cleanly
Some codec packs (looking at you, old versions of K-Lite) leave behind registry entries even after uninstall. Use Revo Uninstaller to do a thorough scan and remove leftover traces. Then reboot before reinstalling.
Prevention
- Always restart when Windows asks you to. Even if you're in a hurry. Skipping reboots is the #1 cause of this error.
- Stick to reputable codec packs. I use K-Lite Codec Pack (Standard) or VLC media player (which doesn't need separate codecs). Avoid sketchy 'download codec here' popups.
- Keep Windows updated. Microsoft has patched Media Foundation bugs over the years. A current system is less likely to hit this.
- If you're installing a driver that bundles codecs (like a printer driver), check if it also installs a media component. Uninstall that separately if you don't need it.
The bottom line: this error is almost always a false alarm. Restart first, then try the registry cleanup or system file check if it sticks. Don't waste hours on it.
Was this solution helpful?