Office Installation Errors

Fix Office 365 Installation Error 5-4 on Windows 7

Tauseeq MagsiTauseeq Magsi Nov 27, 2026 869 views

Question details

Resolve error 5-4 when attempting to install Office 365 on Windows 7.

Fix Office 365 Installation Error 5-4 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.
Before you start

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.

Solution 1Recommended

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.

1
Uninstall existing Office

Open Start > Control Panel > Programs > Programs and Features. Select any old Microsoft Office installation, choose Uninstall, and follow the prompts.

2
Remove remaining components

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.

3
Restart Windows

Select Start > Restart to complete removal of any components waiting for a reboot.

4
Retry installation

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.

Remove old Office components and retry a compatible installer
Check operating system support: Current Microsoft 365 apps do not support Windows 7. Removing old components cannot make an incompatible installer work; upgrading Windows may be necessary.
Free Microsoft Office alternative

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.

Open and edit common Word, Excel, and PowerPoint file formats, including DOCX, XLSX, and PPTXUse familiar document, spreadsheet, and presentation toolsWork with existing Office files without reinstalling Microsoft OfficeGet a free, lightweight office suite
microsoft office alternative - wps office

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.