[wix-users] Elevate during UI phase without a bootstrapper

Hoover, Jacob Jacob.Hoover at greenheck.com
Fri Jun 26 06:02:05 PDT 2020

I do believe the answer is that you can’t using pure MSI and without having them invoke it from an elevated prompt.  What features require admin privileges just to query?  (I am aware of IIS being a pain, but was not aware of a Windows feature… Just tried in powershell, Get-WmiObject Win32_OptionalFeature works just fine as a non-elevated user.)

From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Davy Durham via wix-users
Sent: Thursday, June 25, 2020 10:29 PM
To: wix-users at lists.wixtoolset.org
Cc: Davy Durham <ddurham at davyandbeth.com>
Subject: [wix-users] Elevate during UI phase without a bootstrapper

Hi, I am trying (without success so far) to get an msi to prompt for
elevation before (or during, if it has to) the UI phase.  The reason is
that I have some custom actions which need to query the windows optional
features to adjust the subsequent user interface dialogs, and just to
query whether they're enable requires elevated privileges.  (And no, I'm
not making any changes to the system during the UI phase)

I'm aware that a bootstrapper around the .msi could have a manifest
which requests UAC, but I'm trying to go pure msi if possible. So is
there any way, to accomplish this?  I already have a C# .dll for my
custom actions where I can do custom things.

Thanks for any advice!

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.

More information about the wix-users mailing list