Fix ERROR_INSTALL_SERVICE_SAFEBOOT (0x00000674) in Safe Mode
This error pops up when you try to install or uninstall software in Windows Safe Mode. The Windows Installer service won't start by design in Safe Mode unless you manually force it.
Why You're Seeing This Error
The Windows Installer service (msiexec.exe) is designed to not start when Windows boots into Safe Mode. This isn't a bug — it's a safety feature. Safe Mode loads only essential drivers and services, and MSI (Windows Installer) isn't on that list. So when you double-click an .msi file or run an installer, you get 0x00000674 with the message: "The Windows Installer service is not accessible in Safe Mode."
This commonly happens when you're trying to uninstall a stubborn piece of software or install a driver while troubleshooting. There are three ways around it. I'll start with the one that works 90% of the time.
Cause #1: Safe Mode with Networking Still Blocks MSI
Most people assume "Safe Mode with Networking" includes the Windows Installer service. It doesn't. Both standard Safe Mode and Safe Mode with Networking leave msiexec disabled. The fix is to manually start the service from an elevated command prompt.
How to Fix
- Boot into Safe Mode with Networking (or regular Safe Mode — doesn't matter).
- Press Win + R, type
cmd, then press Ctrl + Shift + Enter to run as Administrator. - Type this command and hit Enter:
net start msiserver - If it starts successfully (you'll see "The Windows Installer service was started successfully"), run your installer or uninstaller right away.
- After you're done, you can leave it running. It'll stop when you exit Safe Mode.
Real-world example: I've used this dozens of times to remove broken antivirus software that wouldn't uninstall in normal mode because it was already corrupted. Boot to Safe Mode, start msiserver, run the vendor's uninstaller — done.
If the service doesn't start with net start, you'll get error 2 or 1058. That leads us to the second cause.
Cause #2: Registry Key Blocks the Service
Windows uses a registry key to tell the Service Control Manager which services to skip in Safe Mode. That key is SafeBoot. If the Windows Installer service got flagged here (manually or by a group policy), it won't start even if you try net start.
How to Fix
- Boot into Safe Mode with Command Prompt (or regular Safe Mode).
- Open Registry Editor as Administrator (type
regeditin an admin command prompt). - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer - If the key exists, check the
(Default)value. It should beService. If it's something else or missing, set it toService. - If the entire
MSIServerkey is missing, create it. Right-clickMinimal→ New → Key → name itMSIServer. Then set its(Default)toService. - Close Registry Editor, then run
net start msiserveragain.
One more thing: If you're booting into Safe Mode with Networking, repeat the same steps under:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer
I've seen group policies (especially on corporate machines) wipe out these keys during updates. Recreating them is a solid fix.
Cause #3: Corrupted Windows Installer Service Files
If neither of the above works, the msiexec binary or its dependencies are likely corrupted. This is rare but happens after failed updates or botched uninstalls.
How to Fix
- Boot into normal mode (not Safe Mode).
- Open an elevated Command Prompt (Admin).
- Run the System File Checker:
sfc /scannow - If SFC finds issues but can't fix them, run DISM next:
DISM /Online /Cleanup-Image /RestoreHealth - Reboot and try Safe Mode again.
Why this matters: SFC replaces corrupt system files, and DISM fixes the component store that SFC relies on. I've fixed machines where msiexec itself was missing or corrupted. After running these two, the service started normally in Safe Mode.
If you're still stuck, you can try reinstalling the Windows Installer redistributable (WindowsInstaller-KB893803-v2-x86.exe for older systems), but on Windows 10/11, DISM handles this better.
Quick Reference Summary
| Cause | Symptom | Fix |
|---|---|---|
| Safe Mode blocks MSI by default | net start msiserver works |
Run net start msiserver as Admin |
| Registry key missing or wrong | net start fails with error 2 or 1058 |
Add/repair MSIServer key under SafeBoot |
| Corrupt installer files | Service won't start even with correct registry | Run sfc /scannow then DISM |
Bottom line: Start with net start msiserver. It's quick, safe, and fixes the vast majority of cases. If that fails, check the registry. Only reach for SFC/DISM if you have to. You'll be in and out in under 5 minutes.
Was this solution helpful?