[wix-users] Avoid Bundle Resume After Reboot

Blair Murri osito at live.com
Tue Jan 29 18:54:21 PST 2019


Embedded mode looks cool.

A quick skim of the source code shows that it doesn't transfer responsibility for logging, but does suppress the restart registration.

It does require the named pipe be connected, etc., though, especially because the named pipe is created by the agent.

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 1:25:18 PM
To: Bob Arnson
Cc: Edwin Castro; WiX Toolset Users Mailing List
Subject: Re: [wix-users] Avoid Bundle Resume After Reboot

Is the named pipe connection required? Or could the agent pass the bundle
the required data and simply not connect to the named pipe and wait until
the bundle completes? Is logging still managed by the bundle OR has the
agent now taken responsibility for any logging?

--
Edwin G. Castro

On Tue, Jan 29, 2019 at 1:11 PM Bob Arnson <bob at firegiant.com> wrote:

> Burn has embedded mode to support such agents. Check out
> https://github.com/wixtoolset/wix3/blob/develop/src/burn/Samples/ManagedBundleRunner/BundleRunner.cs.
>
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Edwin Castro via wix-users
> Sent: Tuesday, 29 January, 2019 03:12
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Edwin Castro <egcastr at gmail.com>
> 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
> post-reboot.
>
> 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/
>

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



More information about the wix-users mailing list