When you try to repair Microsoft 365 or Office through Windows Settings or the Office installer, you may see error code 30015-26. This diagnostic code stops the repair process before it can complete. The error means the repair tool cannot access or modify the Office installation files. This article explains what causes error 30015-26 and provides the steps to fix it.
Key Takeaways: Fixing Office Diagnostic Code 30015-26
- Control Panel > Programs and Features > Microsoft 365 > Change > Quick Repair: Attempt the built-in Quick Repair before using online tools to confirm the failure pattern.
- Microsoft Support and Recovery Assistant (SaRA): The automated SaRA tool can detect and remove stuck Office installation components that cause error 30015-26.
- Microsoft 365 Apps for enterprise uninstall with OffScrub: The OffScrub script from Microsoft removes all traces of a failed Office installation, allowing a clean reinstall.
Why Error 30015-26 Occurs During Office Repair
Error 30015-26 appears when the Office repair process cannot write to the Windows Installer cache or the Program Files folder. The repair tool needs to replace corrupted or missing files. If a system component, security software, or a previous failed update has locked these files, the repair engine returns code 30015-26.
The most common root causes are:
Stale Windows Installer Entries
Each Office installation registers itself in the Windows Installer database. If a previous uninstall or update left behind orphaned registry keys, the repair tool sees conflicting version data and stops.
Antivirus or Security Software Locking Files
Real-time scanning by third-party antivirus tools can hold Office executables open. The repair tool then cannot overwrite these files and throws the diagnostic code.
Corrupted Office Installation Cache
The Click-to-Run streaming technology used by Microsoft 365 stores installation files in a hidden cache. If this cache is damaged, the repair tool cannot find the source files to restore Office.
Steps to Fix Diagnostic Code 30015-26
Use the following methods in order. Each step removes a different barrier that causes error 30015-26.
Method 1: Run the Office Repair Tool From Control Panel
- Open Programs and Features
Press Windows key + R, typeappwiz.cpl, and press Enter. - Select Microsoft 365
Scroll to Microsoft 365 Apps for enterprise or Microsoft 365 in the list. Right-click it and choose Change. - Choose Quick Repair
Select Quick Repair and click Repair. If error 30015-26 appears, note the exact text and proceed to Method 2. - Try Online Repair
Return to the same dialog and choose Online Repair. This downloads fresh installation files. If the error persists, continue with Method 3.
Method 2: Use the Microsoft Support and Recovery Assistant (SaRA)
- Download SaRA
Go toaka.ms/SaRAand download the Microsoft Support and Recovery Assistant tool. - Run the Office Install and Uninstall Troubleshooter
Open SaRA. Select Office > I have Office installed but it is not working correctly > Advanced diagnostics > Next. - Follow the On-screen Prompts
SaRA will scan for broken Office components. If it finds error 30015-26, it will offer to uninstall Office. Accept the uninstall. - Reinstall Office
After SaRA finishes, go tooffice.com/setupand sign in with your Microsoft account. Download and install Office again.
Method 3: Run the OffScrub Script to Force Remove Office
- Download the OffScrub Script
Go to the Microsoft Download Center and search for OffScrub. Download the version matching your Office edition (Microsoft 365 Apps for enterprise or Office 2021). - Run PowerShell as Administrator
Press Windows key, type PowerShell, right-click Windows PowerShell, and select Run as administrator. - Execute the OffScrub Script
Navigate to the folder containing OffScrub. Type.\OffScrub_o365plus.ps1and press Enter. Confirm any user account control prompts. - Restart and Reinstall
Restart your computer. Then go tooffice.com/setupand install Office fresh.
If Error 30015-26 Still Appears After the Main Fix
Windows Installer Service Is Disabled
If the Windows Installer service is not running, the repair process cannot register new components. Press Windows key + R, type services.msc, and press Enter. Locate Windows Installer. If its status is not Running, right-click it and select Start. Set the Startup type to Automatic.
Corrupted .NET Framework Blocks Office Repair
Office depends on the .NET Framework. If .NET is corrupted, error 30015-26 can appear even after a clean Office removal. Download the .NET Framework Repair Tool from Microsoft and run it. Then reinstall Office.
Third-Party Antivirus Interferes With Installation
Temporarily disable real-time protection in your antivirus software. Then run the Office repair or reinstall process. After Office is working, re-enable real-time protection.
Office Repair Methods: Quick Repair vs Online Repair vs OffScrub
| Item | Quick Repair | Online Repair | OffScrub Script |
|---|---|---|---|
| Requires internet | No | Yes | No |
| Removes user data | No | No | Yes, removes all Office data |
| Fixes error 30015-26 | Rarely | Sometimes | Most of the time |
| Time to complete | 5 minutes | 30 minutes | 20 minutes |
| Best for | Minor file corruption | Damaged installation cache | Stale registry entries and locked files |
You now know why error 30015-26 appears during Office repair and how to fix it. Start with the Quick Repair from Control Panel. If that fails, use the Microsoft Support and Recovery Assistant to automate the removal. For stubborn cases, run the OffScrub PowerShell script to erase all Office components. After a clean reinstall, turn on automatic updates in File > Account > Update Options to prevent future corruption.