[wix-users] UAC Admin permisions

Kaveesh Dashora kaveeshd at googlemail.com
Thu Mar 10 06:23:32 PST 2016


Hi Ronny,

Just checking if you have resolved this... If yes how?

Regards,
Kaveesh


On Mon, Mar 7, 2016 at 5:48 PM, Ronny Eriksson
<ronny.eriksson at optimity.se> wrote:
> Okay so i found what is acutely causing my problem.
>
> At start of the MSI I need to get the WebSites and AppPools from the IIS installed on the pc where you run the installer.
> This is done in a Custom Action that that needs admin rights to get the info from IIS through
> This is executed after CostFinalize, so right at the start.
>
> So how do I solve that?
> Is there any way to get the MSI to understand that I need Admin rights from the start before CostFinalize?
> Right now MSI does not elevate when necessary ;)
>
> Any ides?
>
> Can I get the IIS Sites some other way instead of a CustomAction that will help the MSI to understand that I need admin rights?
>
> Ps: the package runs perfect IF you start it from a CMD that is started as Admin.
>
> Ronny Eriksson
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
> Sent: den 6 mars 2016 19:04
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] UAC Admin permisions
>
> Don't do either of those things. Your MSI will elevate when necessary. <smile/>
>
> _____________________________________________________________
>  Short replies here. Complete answers over there: http://www.firegiant.com/ -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Kaveesh Dashora
> Sent: Sunday, March 6, 2016 6:49 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] UAC Admin permisions
>
> MSI does not support elevation when it starts... It requests elevation when the install button is clicked...
>
> You have two options
> 1. Use a bootstrapper to elevate privileges 2. You can create a self elevating custom job... Which elevates the MSI when it starts....
>
> Regards,
> Kaveesh
>
> ____________________________________________________________________
> 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