Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
So I had this same error after uninstalling Office 2010, but then being unable to install Office 365 because "Something went wrong".
After spending hours troubleshooting, and doing everything under the sun (including having a Microsoft representative hop on with me to troubleshoot to no avail), I renamed the folder in C:\ProgramData\ProgramData\OFFICE to OFFICE.old.
It turns out that folder was corrupted, so the installer could not write to it. The installer then created a new folder, and the installation completed.