[Cross posted on StackOverflow <http://stackoverflow.com/questions/20577972/wix-burn-managed-bootstrapper-fails-to-load-errror-0x80040150> . This is a critical issue for us and since no one has replied on SO, posting here as well.]
My managed bootstrapper application as of 2 days back fails to run on some machines, with the following error: [07F4:13CC][2013-12-12T12:20:31]e000: Error 0x80040150: Failed to create the managed bootstrapper application. [07F4:13CC][2013-12-12T12:20:31]e000: Error 0x80040150: Failed to create UX. [07F4:13CC][2013-12-12T12:20:31]e000: Error 0x80040150: Failed to load UX. [07F4:13CC][2013-12-12T12:20:31]e000: Error 0x80040150: Failed while running ... ... [07F4:13CC][2013-12-12T12:20:31]e000: Error 0x80040150: Failed to run per-user mode. Apparently, 0x80040150 (2147746128) is: REGDB_E_READREGDB: Could not read key from registry In the event log, I can see: Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards. No user action is required. DETAIL - 7 user registry handles leaked from \Registry\User\S-1-5-21-4128267814-1525589554-1895505527-1113_Classes: Process 4332 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<file>.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES Process 4332 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<file>.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES Process 6180 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<folder>\BurnBasedSetupKit.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES Process 6180 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<folder>\BurnBasedSetupKit.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES Process 3408 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<folder>\BurnBasedSetupKit.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES Process 3408 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<folder>\BurnBasedSetupKit.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES Process 4332 (\Device\HarddiskVolume4\Users\<username>\AppData\Roaming\<companyname>\<product>\<file>.exe) has opened key \REGISTRY\USER\S-1-5-21-4128267814-1525589554-1895505527-1113_CLASSES It may be pertinent to mention that the BurnBasedSetupKit.exe is invoked by a service using c# code: Process proc = new Process(); proc.StartInfo.FileName = "BurnBasedSetupKit.exe"; proc.StartInfo.Arguments = string.Format("-s -l {0}", logFileName); proc.StartInfo.Verb = "runas"; proc.StartInfo.CreateNoWindow = true; proc.StartInfo.UseShellExecute = false; proc.StartInfo.ErrorDialog = false; proc.StartInfo.RedirectStandardOutput = true; proc.Start(); proc.WaitForExit(); if (proc.ExitCode != 0) { throw new Exception(string.Format("Setup execution process exited with non-zero ExitCode: {0}", proc.ExitCode.ToString())); } The service runs under a user who is in the local administrators group. The BurnBasedSetupKit.exe could very well be invoked by the service when the machine is running but there is no user logged in. [Note: When the BurnBasedSetupKit.exe kit is invoked interactively, everything works fine.] I tried upgrading to the latest stable version of WiX toolset, and the same issue still occurs. This only seems to manifest on some machines. There have been no changes in my custom managed bootstrapper codebase which has been working flawlessly for months. I have confirmed that I don't have the same issue as others who have run into similar errors ( here <https://www.mail-archive.com/wix-users@lists.sourceforge.net/msg47129.html> , here <http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Failed-to-create-the-managed-bootstrapper-application-td7587877.html> , here <http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg58659.html> , here <http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrap-failing-to-load-td7547420.html> ). Would appreciate if someone could shed some light. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-Bootstrapper-fails-to-load-Errror-0x80040150-tp7591316.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users