Failed to write run key value

Yeshen picture Yeshen · Oct 17, 2013 · Viewed 8.5k times · Source

I want to build one (and only one) install.exe which can install both 32bit - 64bit OS, detect .NET, and pre-install it.

I tried to use burn, but it failed, even the most simple bootstrapper didn't work!

I used bootstrapper and automatically generated in VS2010, and changed one and only one code:

<MsiPackage SourceFile="D:\WiX\SetupProject\TestBurn\TestBurn\PlanManagerPackage.msi" />

My PlanManagerPackage.msi did work. My OS is “Windows v6.1 (Build 7600: Service Pack 0)”, and I ran install.exe with admin permission.

Here is the error log:

e000: Error 0x80070005: Failed to write run key value.
e000: Error 0x80070005: Failed to update resume mode.
e000: Error 0x80070005: Failed to begin registration session.
e000: Error 0x80070005: Failed to begin registration session in per-machine process.
e000: Error 0x80070005: Failed to register bundle.

Is this a bug? If it is, is there any method that can help me? If not, how can I solve it?

Answer

Jim picture Jim · Jul 22, 2015

This issue is caused by Virus protection applications stopping the installer from writing keys.

Temporarily disabling the virus checker (McAfee in my case) solved the problem.