[wix-users] UAC Admin permisions

Ronny Eriksson ronny.eriksson at optimity.se
Thu Mar 10 15:43:29 PST 2016


Well to answer Kaveesh question, no i have not.
But I would like to find a way to just find the Sites and AppPools in the IIS without having to use the ServerManager object since you need to be admin to do the connection.
Unfortunaly, Phil, just retrieving data from that object requires Admin...

So firstly I'm looking for another way to solve it.
If not I might have to look in to doing something like u say.

Ronny Eriksson

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phil Wilson
Sent: den 10 mars 2016 23:29
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] UAC Admin permisions

Custom actions in the UI sequence aren't elevated, so the answer is always to elevate the MSI when you start it, and an elevated executable will work as long as you do a CreateProcess run of the MSI (not a shell run) so that elevation is transferred.  The assumption is that installs require elevation only when they are actually altering the system, not when collecting input in the UI sequence. 

So doing this will always require elevation - there's no getting away from that, so elevate the entire MSI install, or shell out an executable custom action from the UI sequence that will request elevation and populate a file your UI custom action could read, something like that anyway. 

Phil W 

 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Kaveesh Dashora
Sent: Thursday, March 10, 2016 6:24 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] UAC Admin permisions

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/

____________________________________________________________________
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