Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Because Modify invokes the same damaged Click-to-Run component, repair Windows first, then remove Office with Microsoft’s uninstall troubleshooter and reinstall it rather than retrying Modify.
1. Repair the Windows component store and system files
- Select Start, type Command Prompt.
- Right-click Command Prompt and select Run as administrator.
- Run these commands in this order:
DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Wait for DISM to report that the operation completed successfully and for SFC to reach 100%. Microsoft specifies running DISM before SFC because DISM supplies the components SFC uses for repair.^1^
- Restart Windows.
- Test Word or Excel once.
A closely matching case—Office applications and the uninstaller both failing with 0xc000012f and naming C2RUI.dll—uses this repair-first, complete-removal, and reinstall sequence.^2^
2. If the error remains, remove Office without using Modify
Your path names the Click-to-Run component, so use Microsoft’s uninstall troubleshooter:
- Open Microsoft’s Uninstall Microsoft 365 or Office from a PC page.
- Under Click-to-Run, start the uninstall troubleshooter.
- If prompted that the site wants to open Get Help, select Open.
- Complete the prompts and restart when requested.
Run it on the affected PC. It requires Windows 10 or later and supports Microsoft 365, Office 2021, Office 2019, and Office 2016, but currently not Office 2024.^3^
Removing Office does not delete documents, workbooks, or other files created with Office.^3^
3. Reinstall and activate Microsoft 365
- Go to the Microsoft 365 Apps page identified in Microsoft’s installation instructions.
- Sign in with the Microsoft account associated with the subscription or purchase.
- Select Install apps, then Install or Microsoft 365 apps.
- Run the downloaded setup and approve the User Account Control prompt.
- Open Word when installation finishes and accept the license agreement or complete the Activation Wizard.^4^
If the uninstall troubleshooter also fails
Microsoft documents a manual Click-to-Run removal procedure, but it is lengthy, requires administrator access, deletes Office files/services/tasks and registry keys, and can create serious problems if performed incorrectly. Use it only after the troubleshooter fails, and back up the registry before changing it.^5^
Do not download an individual C2RUI.dll from a DLL-download site or copy one from another PC. Repair or reinstall the complete Office package instead.
References
- Use the System File Checker tool to repair missing or corrupted system files | Microsoft Support
- Word and Click-to-Run both fail with Bad Image error 0xc000012f - Microsoft Q&A
- [Click-to-Run](https://support.microsoft.com/office/lifecycle/officeinstall/uninstall-microsoft-365-or-office-from-a-pc)
- Download, install, or reinstall Microsoft 365 or Office 2024 on a PC or Mac
- Manually uninstall Office