Unable to Install : Error 0x80070643: Failed to install MSI package


I am trying to install an application(.msi), I used WiX installer to create a exe(it has depenendcies). I tried installing it in some of the PC and it works perfectly fine. But in one of the system when it is trying to install the msi it givens an error and roll backs the installation(which is normal).

Unable to figure out why it is not installing in this specific machine. Any suggestions.?

asked on Stack Overflow Jan 18, 2017 by Abdulla Jidda

2 Answers


This article seems to indicate that it's a generic issue - the system needs a reboot:


so that's the first thing to try. If the issue persists it's probably something to do with the system being stuck in a state where it thinks there's a install still running. They could look at this to see the registry items that can affect this:


If you install the MSI file producing a log then it may show what's going on: msiexec /I [path to msi file] /l*vx [path to text log file]

It's possible that there is something in your setup that is causing this on that machine, especially if it performs another setup or a driver install (or something like that) that leaves the system in a state where it needs a reboot to continue your installation. Also, sometimes it's useful to add the MsiSystemRebootPending property as a launch condition so you don't start the install if a reboot is pending:


The error (from the comment) -2147024891 is 0x80070005, Access is denied. There does seem to be an occasional error where the system account loses access to some folders, so that may be the issue in this particular case. If the access to the C:\ drive (and maybe some others) do not allow full access to the SYSTEM account then that could result in some odd downstream problems.

answered on Stack Overflow Jan 18, 2017 by PhilDW • edited Jan 20, 2017 by PhilDW

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).

answered on Stack Overflow Jan 18, 2021 by RobertL

User contributions licensed under CC BY-SA 3.0