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

David Huang dave at alterity.com
Tue Feb 9 13:57:05 PST 2021


That works well, except for a minor annoyance: I click the "Install" button, and the installer does the layout, then when it starts the actual install, it prompts for elevation. I think a lot of users will click Install, and if the elevation prompt doesn't show at that time, they'll walk away/do something else, only to come back to an elevation prompt.

Is there a way to get it to request elevation before doing the layout (even though the layout itself doesn't need elevation)? I tried simply calling Engine.Elevate() before executing the layout if an install is going to happen afterwards, but it behaves strangely--when I click "Install", it requests elevation immediately, but doesn't actually do the layout (or anything else). I have to click "Install" again. I found a couple of mailing list posts about Engine.Elevate() saying it's difficult to use because there aren't any callbacks to report on what happened with the elevation, although it doesn't seem like that would explain the behavior I'm seeing. (E.g. http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/quot-BURN-Elevate-related-question-quot-td7586909.html)

Or perhaps I could install first, then layout...

-----Original Message-----
From: Rob Mensching <rob at firegiant.com> 
Sent: Sunday, February 7, 2021 11:36 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: David Huang <dave at alterity.com>
Subject: RE: How to copy downloaded packages to a directory in burn custom MBA

Add the checkbox, if checked plan a layout, execute the layout, then re-plan an install and execute that.




More information about the wix-users mailing list