[wix-users] Hand over an action to wix bundle elevated process

Ireneusz Grala ireneusz.grala at wp.pl
Fri May 5 14:09:54 PDT 2017


Hello,
thank you for your answers.

To Gerhard Matzen: I've tried the way with restarting the process as  
elevated. It caused some troubles with when updating my product, so I've  
gave up this way. Thus my problems now. When I had my BA elevated I didn't  
have the problem with reading IIS configuration.

To Hoover Jacob: I know when BA is elevating and as I wrote, one can call  
Engine.Elevate() which will create BA UI-less elevated process. That's why  
I was asking. Whether it is possible to communicate with that process and  
pass or call from it a method. I also know it is fault of IIS, but since  
in my company we use this to host our SPA, I need to deal with it.

To John Cooper: For now I'm dealing with calling a bat file to get what I  
need. But this also gives double UAC prompt. But that's the best I could  
think off.

To Nir Bar: I've read about this solution also but it's no go.

-- 
Z poważaniem / Best regards

Ireneusz Grala

W dniu 04.05.2017 o 22:08 John Cooper <JoCooper at jackhenry.com> pisze:

> Correct.  I use my own code to spawn the daemon elevated, connect to it  
> via named pipe, serialize, etc.
>
> --
> John Merryweather Cooper
> Senior Software Engineer -- Integration Development Group -- Enterprise  
> Notification Service
> Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Office:   
> 913-341-3434x431050
> JoCooper at jackhenry.com
>
>
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On  
> Behalf Of Hoover, Jacob
> Sent: Thursday, May 4, 2017 2:59 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Hand over an action to wix bundle elevated  
> process
>
> The e-mail below is from an external source.  Please do not open  
> attachments or click links from an unknown or suspicious origin.
>
> I would assume that means your BA elevates twice.  Once from your Daemon  
> during Detect, and once when the user hits install?
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On  
> Behalf Of John Cooper
> Sent: Thursday, May 04, 2017 2:33 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Hand over an action to wix bundle elevated  
> process
>
> To elevate during Detect, I wrote a daemon process specifically for  
> interrogating IIS communicating with the main bundle via net.pipe and  
> serializing the data using JSON.  Works pretty well while UAC is enabled  
> or the installing user is a true Administrator.  Can get iffy in other  
> scenarios.
>
> --
> John Merryweather Cooper
> Senior Software Engineer -- Integration Development Group -- Enterprise  
> Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS  66214  
> | Office:  913-341-3434x431050 JoCooper at jackhenry.com
>
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On  
> Behalf Of Hoover, Jacob
> Sent: Thursday, May 4, 2017 2:24 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] Hand over an action to wix bundle elevated  
> process
>
> The e-mail below is from an external source.  Please do not open  
> attachments or click links from an unknown or suspicious origin.
>
> The problem is that the BA doesn't elevate until Apply is called. And  
> apply just executes the plan.
>
> What you really are asking for is an ability to elevate during detect,  
> in order to make better decisions during plan. This may be a worth wile  
> feature, but the BA currently doesn't support this from my recollection.
>
> P.S. This is really a fault of IIS where it doesn't allow read access to  
> the configuration from a non-elevated user.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On  
> Behalf Of Ireneusz Grala
> Sent: Thursday, May 04, 2017 1:24 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: [wix-users] Hand over an action to wix bundle elevated process
>
> Hello, to everyone!
>
> I know that during installation burn engine creates UI-less process with  
> elevated priviliges. I also know it can be created earlier by calling  
> Engine.Elevate method. Is there a way to communicate with this process  
> and invoke an action that requires elevated user rights? I would like to  
> discover in bootstrapper what is the current website configuration in  
> IIS.
>
> The whole thing is about updating my version one app but preserving any  
> changes that customer could make to website binding.
>
> Hope this is clear enough.
>
> Thanks for any advice.
>
> --
> Z poważaniem / Best regards
>
> Ireneusz Grala
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant  
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant  
> http://www.firegiant.com/
> NOTICE: This electronic mail message and any files transmitted with it  
> are intended exclusively for the individual or entity to which it is  
> addressed. The message, together with any attachment, may contain  
> confidential and/or privileged information.
> Any unauthorized review, use, printing, saving, copying, disclosure or  
> distribution is strictly prohibited. If you have received this message  
> in error, please immediately advise the sender by reply email and delete  
> all copies.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant  
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant  
> http://www.firegiant.com/
> NOTICE: This electronic mail message and any files transmitted with it  
> are intended
> exclusively for the individual or entity to which it is addressed. The  
> message,
> together with any attachment, may contain confidential and/or privileged  
> information.
> Any unauthorized review, use, printing, saving, copying, disclosure or  
> distribution
> is strictly prohibited. If you have received this message in error,  
> please
> immediately advise the sender by reply email and delete all copies.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant  
> http://www.firegiant.com/



More information about the wix-users mailing list