[wix-users] Uninstall Throws 0x8007015E (Reboot is Pending) but RebootPending variable is 0
bryand at recastsoftware.com
Wed Feb 19 11:12:57 PST 2020
My bad, I did not specify. Correct, the uninstall is failing and returning that error code.
My suspicion is that one of the pre-reqs (.NET Core 3.1.0 Hosting Bundle) is triggering the needed reboot. So if I install, don’t reboot, then try to uninstall I can semi-reliably trigger the issue. If I reboot it will uninstall just fine. I’m just wondering why RebootPending is 0 in this case and if there’s any other check I could add to determine that a reboot is pending and exit before attempting to uninstall.
From: Edwin Castro <egcastr at gmail.com>
Sent: Wednesday, February 19, 2020 2:06 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Bryan Dam <bryand at recastsoftware.com>
Subject: Re: [wix-users] Uninstall Throws 0x8007015E (Reboot is Pending) but RebootPending variable is 0
Is that error during uninstall telling you that the uninstall didn't happen (was blocked) because something (perhaps your product or perhaps something else) requires a reboot? Is it possible something other than your product is the root cause here?
Edwin G. Castro
On Wed, Feb 19, 2020 at 10:56 AM Bryan Dam via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:
Wondering if anyone has come across this before. I'm in the testing phase of a new custom BA and the uninstall will sometimes fail with 0x8007015E (-2147024546) which translates to "No action was taken as a system reboot is required." I have logic that looks at the RebootPending built-in string variable but in these cases it's always been 0 which supposedly indicates that no reboot is supposedly required. It's not strictly repeatable so I'm not sure I'm going to get too worked up about it but figured I'd throw it out there and see if anyone has seen the same thing.
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users