Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
I struggled with this error for two days straight. I even had a Microsoft tech remote in and he was unable to resolve, ultimately deciding to take the computer down for a chkdsk and then disappearing.
I was finally able to get this to work - I followed the steps for how to manually uninstall Office 2013 on the Microsoft site - I had run the Fixit about a dozen times, but to no avail.
Many of the folders and registry keys the article mentions did not exist, but I followed the directions as best I could. I think what actually fixed this (in my case) was Step 5-7 where it says "Delete the FFPackageLocker folder." - Only mine wasn't called FFPackageLocker - it was called ClickOnceLocker or something similar.
Once I deleted this file and then worked the rest of the steps outlined through Step 7, I tried running the Office 365 install again - and my hope began to rise as it cleared 70% (previously it crapped out with the 30174-4 error at around 58%-64%). Fianlly, it reached 100% and began installing!
So, in my case I believe all I really needed to do this whole time was go in and delete either C:\ProgramData\Microsoft\Office\ClickToRunPackageLocker (or C:\ProgramData\Microsoft\Office\FFPackageLocker had it existed) and the install would have worked.
If you're pulling your hair out, this easy fix is worth a shot. If it doesn't work, you may try following the rest of the steps at https://support.office.com/en-au/article/manually-uninstall-Office-2013-or-Office-365-1d1110d5-75a4-4154-969e-4260ff29b232