Fix Office 365 Installation Error 5-4 on Windows 7
Question details
Resolve error 5-4 when attempting to install Office 365 on Windows 7.

- Product
- Microsoft Office 365
- Device & OS
- Windows 7
- Scenario
- Installing Office 365 on a computer that may have an older Office installation or leftover setup components.
- Observed behavior
- The Office installation program fails to start and displays error 5-4.
Check whether Windows 7 is 32-bit or 64-bit in Start > Control Panel > System and Security > System. Windows 7 and current Microsoft 365 apps are no longer supported together, so verify that your licensed Office installer is compatible with Windows 7 before retrying.
Remove old Office components and retry a compatible installer
Use this approach when an older Office installation or leftover setup components may be blocking installation.
Microsoft's older Fix It tools may no longer be available, and newer removal tools may not support Windows 7. Use the removal instructions applicable to your Office version and operating system.
Open Start > Control Panel > Programs > Programs and Features. Select any old Microsoft Office installation, choose Uninstall, and follow the prompts.
Visit Microsoft Support and search for Office uninstall instructions for your Office version and Windows 7. Follow the applicable manual removal instructions or use a compatible Microsoft removal tool if one is available. On 64-bit Windows, save an older Fix It tool locally before running it.
Select Start > Restart to complete removal of any components waiting for a reboot.
Obtain a Windows 7-compatible Office installer from your licensed source. Right-click the saved setup file, select Run as administrator, and follow the installation prompts.

Repair an existing Office installation or contact Microsoft Support
Try a repair if Office is still listed in Programs and Features, or seek further help if removal and reinstallation do not resolve the error.
Use WPS Office as an Alternative to Microsoft Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Office files, making it easier to move your documents. Check the system requirements for the available WPS version before installing it on Windows 7.

Frequently Asked Questions
What causes Office installation error 5-4?
Error 5-4 indicates that the Office installation program could not start. An older Office installation or damaged setup components may be involved.
Can I install the current Microsoft 365 apps on Windows 7?
No. Current Microsoft 365 apps do not support Windows 7. Check the requirements for your licensed Office version or upgrade Windows before installing a current release.
What if the Office Fix It tool did not resolve the error?
Check Programs and Features for a remaining Office installation and use Change to repair it if available. Then follow Microsoft Support's manual removal instructions for your Office version and Windows 7, or contact Microsoft Support.
How do I run the Office installer as an administrator?
Find the downloaded setup file in Windows Explorer, right-click it, and select Run as administrator. Confirm the prompt, then follow the installer instructions.




