I have suffered the same problem. For future users facing with similar issue.
- 0x80070005 Failed to create registration key
- Error 0x80070659: Failed to install MSI package, Failed to execute MSI package, Failed to configure per-machine MSI package, Error 0x80070659: Failed to execute MSI package
- Could not open key: UNKNOWN\Components\xx\yy. Verify that you have sufficient access to that key, or contact your support personnel.
In my case, I use Process Monitor to check installation process.
Found error (MainEngineThread is returning 1625) occur just in RegQueryKey-SUCCESS-RegOpenKey-SUCCESS-RegQueryValue-NAME NOT FOUND-RegCloseKey.
After I disable the KEY (by delete or rename).
The installation could continue, creating new key-value, treated as Product not registered: beginning first-time install.
So, the reason seems to be there is some old un-cleaned registry detected(especially at HKCR\Installer\Products).
Also, could first try check log of msiexec.exe.
And it's not related with Group Policy Object (GPO) or special config on computer.
When searching for my issue, I google here, thanks for sharing.
And I post my summarize at SOLIDWORKS VC VSTA 安装 权限 注册表 策略组 相关问题 (Most in Chinese, but have a lot reference).
-2147024891=0x80070005= Access Denied. Are you trying to set permissions on C:\? Update your question with the error and any other relevant information (such as snippets from your wxs file). - Michael Urman