1. Type "Regedit" in your "Windows search" or "Run" and click "Registry Editor" and also click "Yes" if windows ask for consent.

Screenshot for How to clean-up registery setting for Microsoft Office Installation

Screenshot for How to clean-up registery setting for Microsoft Office Installation

2. Navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office" and right-click on the "Office" folder and click "delete" to delete the entry from the registry. And then restart your computer and reinstall office again. 

Screenshot for How to clean-up registery setting for Microsoft Office Installation

Screenshot for How to clean-up registery setting for Microsoft Office Installation