[wix-users] Avoid Bundle Resume After Reboot

Blair Murri osito at live.com
Tue Jan 29 09:54:15 PST 2019

I don't believe the rerun registration can be suppressed, but the bundle does try as hard as it can to be the one that manages rebooting by any processes it launches. If some process launched (directly or indirectly) initiates a reboot, you should do all you can to prevent that (via command line args, etc). It wouldn't initiate the reboot if you asked it not to, but that doesn't change its efforts WRT other processes.

If the reboot is initiated by a process unrelated to the installation, could your deployment agent try using the Window API for blocking shutdowns (e.g. WM_QUERYENDSESSION and its companions)?

Get Outlook for Android<https://aka.ms/ghei36>

From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Edwin Castro via wix-users <wix-users at lists.wixtoolset.org>
Sent: Tuesday, January 29, 2019 12:12:19 AM
To: WiX Toolset Users Mailing List
Cc: Edwin Castro
Subject: [wix-users] Avoid Bundle Resume After Reboot

I have an unusual question. Is it possible to stop a bundle from
registering itself to resume after a reboot?

We have a deployment agent that wants to be in charge of restarting our
bundle after a system reboots. If the bundle requests the reboot, then it
is somewhat trivial to pass /norestart on the command line and inject a
step that removes the RunOnce value after the bundle completes but before
the system is actually rebooted. But if the system is rebooted by some
other process, then the agent's step to remove the RunOnce value has not
been executed which results in our bundle automatically resuming

I understand that under normal circumstances it is incredibly beneficial to
have the automatic resume but in this case the deployment agent wants to be
in control of when these deployments are restarted.

Any thoughts?

Edwin G. Castro

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

More information about the wix-users mailing list