[wix-users] How to copy downloaded packages to a directory in burn custom MBA

Sean Hall r.sean.hall at gmail.com
Tue Feb 9 19:37:42 PST 2021


You're running into https://github.com/wixtoolset/issues/issues/6349. In
v3, you'll have to poll the WixBundleElevated variable after calling
Engine.Elevate like the person in the thread you linked to earlier. Don't
do that in a callback from the engine like OnElevate, you'll just hang. If
you do it from a UI thread, make sure to process messages in that loop so
the UI remains responsive (Application.DoEvents in WinForms).

On Tue, Feb 9, 2021 at 5:25 PM David Huang <dave at alterity.com> wrote:

> Hmm, it doesn't seem to be working... the log says:
>
> [0EE0:0E70][2021-02-09T17:19:19]i000: In OnElevate, about to plan Layout
> [0EE0:0E70][2021-02-09T17:19:19]i010: Launching elevated engine process.
> [0EE0:0E70][2021-02-09T17:19:24]i011: Launched elevated engine process.
> [0EE0:0E70][2021-02-09T17:19:24]i012: Connected to elevated engine.
>
> And my OnElevate looks like:
>
>         private void OnElevate(object sender, ElevateEventArgs e)
>         {
>             Bootstrapper.Engine.Log(LogLevel.Standard, "In OnElevate,
> about to plan Layout");
>             Bootstrapper.Engine.Plan(LaunchAction.Layout);
>         }
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Sean Hall via wix-users
> Sent: Tuesday, February 9, 2021 4:12 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Sean Hall <r.sean.hall at gmail.com>
> Subject: Re: [wix-users] How to copy downloaded packages to a directory in
> burn custom MBA
>
> v3 has the OnElevate callback before it shows the UAC prompt, I would
> expect you to be able to call Plan from there. If not, the log (in %TEMP%)
> might show something.
>
>



More information about the wix-users mailing list