[wix-users] Custom Action with elevated privilege

Edwin Castro egcastr at gmail.com
Fri Dec 14 09:03:11 PST 2018

Have you verified the executable is actually getting launched?

I expect this executable to run with normal user permissions since you are
running this on ExitDialog after the install transaction has completed. Now
that you have changed the manifest for the executable to require elevation
I would expect Windows to show an UAC dialog requesting elevation or
requesting credentials for an administrative user. The executable's UI will
not show until after the dialog is dealt with.

I have noticed on some cases the UAC dialog is not display immediately but
rather I see it flash on my taskbar and I have to click it on the taskbar
to get the dialog. If you take too long the dialog goes away. Perhaps you
are experiencing something similar. I expect this is Windows behavior and
not something you'll be able to control too much.

Edwin G. Castro

On Thu, Dec 13, 2018 at 7:15 PM Wenzheng Jia via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> I changed the manifest of the configuration executable. Now the event
> doesn't trigger the configuration executable's UI to show up at all. Any
> thoughts?
> Wenzheng
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Rob
> Mensching via wix-users
> Sent: Thursday, December 13, 2018 4:01 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Rob Mensching <rob at firegiant.com>
> Subject: Re: [wix-users] Custom Action with elevated privilege
> Manifest the executable to require elevation
> _____________________________________________________________
>  Short replies here. Complete answers over there:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DwICAg&c=PSLapdneSrIm6YCSwp9NIGuZt5KBqytXkQWJ6tZG4UQ&r=1Rm10nvLj379JDc0olGT1Q&m=avZa-T5fw-SOKT3TquIRo1WmRnXgOTWNtV5hFWlvt4Y&s=fig_YK_LGEbx77zlghw1Vgh7yLkHiCkil4caTdKkgo0&e=
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> Wenzheng Jia via wix-users
> Sent: Thursday, December 13, 2018 1:56 PM
> To: wix-users at lists.wixtoolset.org
> Cc: Wenzheng Jia <WJia at liaison.com>
> Subject: [wix-users] Custom Action with elevated privilege
> I'm creating an installer to launch an executable after the installation.
> The executable will only be launched when a checkbox is selected on the
> ExitDialog. I hooked up the CustomAction to the Finish button of the
> ExitDialog box. I'm able to launch the executable. But the executable
> doesn't have the elevated privilege. It failed to save the output file to
> the installation folder due to lack of privilege. Is there any way that I
> can accomplish this?
> configure the Connector config file" />
> <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
> Value="LaunchFile" Order="999">(NOT Installed) AND
> <CustomAction Id='LaunchFile' Directory='APPLICATIONFOLDER'
> ExeCommand='[APPLICATIONFOLDER]Config.exe' Impersonate='no'
> Return="asyncNoWait" />
> Wenzheng Jia
> Senior Software Engineer
> Liaison Technologies
> 3157 Royal Drive | Suite 200 | Alpharetta, GA 30022
> T: +1 888.806.0309 x525
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.liaisonhealthcare.com&d=DwICAg&c=PSLapdneSrIm6YCSwp9NIGuZt5KBqytXkQWJ6tZG4UQ&r=1Rm10nvLj379JDc0olGT1Q&m=avZa-T5fw-SOKT3TquIRo1WmRnXgOTWNtV5hFWlvt4Y&s=kKXHAPnLhNVfz78aKLK0T8ObJcLe5UxuZYlWuvA_Eg4&e=
> <
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.liaisonhealthcare.com_&d=DwICAg&c=PSLapdneSrIm6YCSwp9NIGuZt5KBqytXkQWJ6tZG4UQ&r=1Rm10nvLj379JDc0olGT1Q&m=avZa-T5fw-SOKT3TquIRo1WmRnXgOTWNtV5hFWlvt4Y&s=J0tBdN8mP8E_tHcSGJHeix-C1nudBqnt_WzIkpICt78&e=>Connect
> with us!<http://liaison.com/about-liaison/communities>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DwICAg&c=PSLapdneSrIm6YCSwp9NIGuZt5KBqytXkQWJ6tZG4UQ&r=1Rm10nvLj379JDc0olGT1Q&m=avZa-T5fw-SOKT3TquIRo1WmRnXgOTWNtV5hFWlvt4Y&s=fig_YK_LGEbx77zlghw1Vgh7yLkHiCkil4caTdKkgo0&e=
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/

More information about the wix-users mailing list