You might see error code 30174-4-27 if you run out of disk space while installing Office. Free up space on your hard drive and then try installing Office again.
Free up disc space
For more information about freeing up disc space, choose one of the following articles depending on your Windows operating system.
For Windows 10, go to Free up drive space on your hard drive.
For Windows 8.1 and Windows 7, go to Tips to free up drive space on your PC.
Restart your computer and reinstall Office
After clearing up disc space, restart your computer and try the installation again.
Restart your computer.
Reinstall Microsoft 365.
To reinstall Office select the version you want to install and follow those steps.