[wix-users] How to copy downloaded packages to a directory in burn custom MBA
dave at alterity.com
Thu Feb 11 15:51:28 PST 2021
Polling WixBundleElevated worked. Thanks!
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Sean Hall via wix-users
Sent: Tuesday, February 9, 2021 9:38 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
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).
More information about the wix-users