[wix-users] RebootPending Burn Variable Question

Rob Mensching rob at firegiant.com
Wed Sep 21 11:53:03 PDT 2016

That or restarting your Windows Server machine isn't actually clearing the restart requirement (seen WU get stuck in perpetual restart cycle, for example). IIRC, "RebootPending" rolls up several checks, you can see in the code.

 Short replies here. Complete answers over there: http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Fenstad, Darrel B
Sent: Wednesday, September 21, 2016 11:47 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] RebootPending Burn Variable Question


I tried to use the Burn built-in variable RebootPending to require a reboot before trying to install my product if it is set. The <bal:Condition> was added to the <Bundle> as follows:

    <bal:Condition Message="!(loc.RebootPendingMessage)"><![CDATA[ RebootPending <> 0 ]]></bal:Condition>

This worked fine on my laptop running Windows 10.

However, on a Windows Server 2012,I keep getting the reboot message. I rebooted 3 times now and still get it. I am running with WiX Toolset v3.10.3.

The following shows up in the log file:

14B0:1750][2016-09-21T13:19:50]i052: Condition 'RebootPending <> 0' evaluates to false.
[14B0:1750][2016-09-21T13:19:50]e000: A system reboot is pending for a software update. You must reboot your system before installing this product.
[14B0:1750][2016-09-21T13:19:50]e000: Error 0x81f40001: Bundle condition evaluated to false: RebootPending <> 0
[14B0:1750][2016-09-21T13:19:50]i199: Detect complete, result: 0x0

Am I misunderstanding the RebootPending variable or is it just not working as one would expect?

At this point, it seems like I cannot rely on this working as 3 reboots did not clear the RebootPending condition.


More information about the wix-users mailing list