[wix-users] RebootPending Burn Variable Question

Fenstad, Darrel B Darrel.Fenstad at UNISYS.com
Wed Sep 21 11:46:33 PDT 2016


Hi,

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.


Darrel


More information about the wix-users mailing list