[wix-users] [WIX]: How to run *.exe (which was launched by MSI) under current user account

Farrukh Waheed farrukh1 at gmail.com
Tue Apr 5 01:40:38 PDT 2016


Did you tried with Impersonate="no"? Actually, I've developed a Managed
Bootstrapper and doing the Launch things with that. And never got any need
to use current user account as in your case....

On 5 April 2016 at 12:18, Dileep S <dileep.sanampudi at gmail.com> wrote:

> I have created an MSI package using WIX 3.7
>
> Required the below options.
>
> 1) MSI package should display UAC prompt before extracting files.
>
> 2) *.exe file should launch after extracting the files.
>
> 3) *.exe should run under current user account.
>
> Case1: Following syntax used in WIX script file to launch an EXE.
>
> > <Package InstallerVersion="200" Compressed="yes"
> InstallScope="perMachine"
> > InstallPrivileges="elevated" />
> > <CustomAction Id="InstallDRV" Directory="INSTALLDIR" Execute="deferred"
> > ExeCommand="MyApplication.exe" Impersonate="no" Return="asyncNoWait" />​​
>
> Observation:
>
> *.exe is running under Local System account.
>
> Case2: Following syntax used in WIX script file to launch an EXE.
>
> > ​<Package InstallerVersion="200" Compressed="yes" InstallScope="perUser"
> > InstallPrivileges="limited" />
> > <CustomAction Id="InstallDRV" Directory="INSTALLDIR" Execute="immediate"
> > ExeCommand="MyApplication.exe" Impersonate="yes" Return="ignore" />​​
>
> Observation:
>
> 1) UAC prompt is not displayed
>
> 2) *exe is not launched.
>
> Case3: Following syntax used in WIX script file to launch an EXE.
>
> > ​<Package InstallerVersion="200" Compressed="yes"
> > InstallScope="perMachine" InstallPrivileges="elevated" />
> > <CustomAction Id="InstallDRV" BinaryKey="SampleCA"
> > DllEntry="CustomAction1" Execute="immediate"  Impersonate="yes"
> > Return="ignore" />​​
>
> Observation:
>
> 1) *.exe is running as local system account.
>
>
> How to resolve this issue?
>
> Regards,
>
> Dileep
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/


More information about the wix-users mailing list