Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Try the Office 365/2013/2016 cleanup utility for Windows 10. There are different ones for Windows 7.
That is a great idea. Office, after failed installs, leaves all kinds of "debris" when it rolls back the install. There are registry items that get stuck in the registry.