[wix-users] ForceReboot after InstallFiles

Hoover, Jacob Jacob.Hoover at greenheck.com
Mon Jul 6 09:05:29 PDT 2020


Can we start with the why behind forcing a reboot?

From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Davy Durham via wix-users
Sent: Thursday, July 2, 2020 6:52 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Davy Durham <ddurham at davyandbeth.com>
Subject: [wix-users] ForceReboot after InstallFiles

Hi,

  I'm trying to force a reboot mid-install for an .msi.  (I'm avoiding
burn because strictly an .msi is a requirement).

  I'm wanting to <ForceReboot after="InstallFiles"> and then resume
with more actions, all before the Register/Publish steps.

  It seems that in this case, after the reboot, the msi is run again
but it starts the UI phase all over (presumable because the product is
not registered/published).   However, if I <ForceReboot
before="InstallFinalize"> the behavior after reboot is correct in that
the UI reappears with a "Resume" dialog and it continues.  But the
problem is that after the Register/Publish steps, "Installed" is now
/true/ and who knows what the other properties' values are, which are so
tricky to get right already regarding install/uninstall/upgrade, etc.

  Is it possible to <ForceReboot after="InstallFiles"> and have it
resume the execute phase where it left off or at least have the UI hit
the resume dialog when AfterReboot is true regardless of where the
reboot occurred?


Thanks!



____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.


More information about the wix-users mailing list