[wix-users] RebootPending Burn Variable Question

Fenstad, Darrel B Darrel.Fenstad at UNISYS.com
Wed Sep 21 14:46:24 PDT 2016


I figure it out - my condition was wrong. I had copied the syntax from online link 'https://wyrdfish.wordpress.com/2012/07/20/msi-writing-guidelines-this-may-be-out-of-date', which gave the example I put in. That example is wrong, the condition needs to be just the following:

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

Guess one can't trust posted example code (yeah, I did know that) :(


Darrel 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Wednesday, September 21, 2016 1:53 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] RebootPending Burn Variable Question

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

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

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list