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.?
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.
I have suffered the same problem. For future users facing with similar issue.
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
Also, could first try check log of
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).
User contributions licensed under CC BY-SA 3.0