[wix-users] How to launch EXE file under current user account?
Farrukh Waheed
farrukh1 at gmail.com
Mon Apr 4 11:45:32 PDT 2016
In addition, from a StackOverflow page, here is a way to launch the exe
directly:
<CustomAction Id="LaunchApp"
Directory="INSTALLDIR"
ExeCommand="[SystemFolder]cmd.exe /C MyExe.exe"
Impersonate="yes" />
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize" />
<Custom Action="LaunchApp" After="InstallFinalize" />
</InstallExecuteSequence>
On 4 April 2016 at 21:28, Farrukh Waheed <farrukh1 at gmail.com> wrote:
> I should have shared this before. Please go through this tutorial:
>
> http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html
>
> On 4 April 2016 at 15:52, Dileep S <dileep.sanampudi at gmail.com> wrote:
>
>> using the above custom action, inside DllEntry, we call *.exe using create
>> process. This requires elevated permission to run the *.exe file.
>> Display UAC prompt before extracting the files instead of displaying UAC
>> prompt at the time of launching *.exe.
>>
>> On Mon, Apr 4, 2016 at 3:15 PM, Farrukh Waheed <farrukh1 at gmail.com>
>> wrote:
>>
>> > I think, when you'll launch installation as Administrator, UAC may not
>> be
>> > asked... but do try it..
>> >
>> > On 4 April 2016 at 14:15, Dileep S <dileep.sanampudi at gmail.com> wrote:
>> >
>> > > UAC prompt appears at the time of launching *.exe. But, can we get UAC
>> > > prompt before extracting files into the system?
>> > >
>> > > On Mon, Apr 4, 2016 at 1:31 PM, Farrukh Waheed <farrukh1 at gmail.com>
>> > wrote:
>> > >
>> > > > Windows Installer Service is actually running as msiexec.exe. If you
>> > > launch
>> > > > any MSI installation, you will see another msiexec in task manager.
>> > There
>> > > > may be more in child-process.
>> > > >
>> > > > Did you tried with Impersonate="yes" or "no"?, e.g.:
>> > > >
>> > > > <Property Id="WixShellExecTarget" Value="[#myapplication.exe]"
>> />
>> > > > <CustomAction Id="LaunchApplication" BinaryKey="WixCA"
>> > > > DllEntry="WixShellExec"
>> > > > Impersonate="yes" />
>> > > >
>> > > >
>> > > > On 4 April 2016 at 11:41, Dileep S <dileep.sanampudi at gmail.com>
>> wrote:
>> > > >
>> > > > > Dear All,
>> > > > >
>> > > > > I have created MSI package using WIX script.
>> > > > >
>> > > > > When running an MSI, two process of msiexec is running in Task
>> > manager.
>> > > > >
>> > > > > 1. msiexec is running under SYSTEM.
>> > > > > 2. another msiexec is running under CURRENT USER account
>> > > > >
>> > > > > Using MSI package i have to launch an EXE file. That EXE file
>> should
>> > > run
>> > > > > under current user.
>> > > > >
>> > > > > But, EXE is running under SYSTEM account.
>> > > > >
>> > > > > How to launch EXE file under current user account?
>> > > > >
>> > > > > Please help me on this.
>> > > > >
>> > > > > Thanks in advance.
>> > > > >
>> > > > > Regards,
>> > > > > Dileep
>> > > > >
>> > > > >
>> ____________________________________________________________________
>> > > > > 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/
>> >
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
>
More information about the wix-users
mailing list