mhyllander
Posts: 11
Joined: Mon Oct 01, 2012 3:14 pm

Run an application as logged in user after remote install

I have a question regarding how to run an application as the currently logged in user. Specifically I'm thinking of the case where an msi is distributed and installed remotely, e.g. using Group Policy or some other mechanism. In the normal case when the installation is done by the logged in user it is fairly straight forward to start an application as that user at the end of the installation. But how does that work when the msi is pushed/distributed and installed over the network? Is it still possible to start the application as the user that is currently logged in to the computer?

I'm not sure I'm posing the question correctly, since I have a pretty vague idea of how remote distribution and installation of an msi is done. I'm thinking that maybe the installation is done by a "distribution user", and if so, is it still possible to start an application as the real user who is currently logged in?

The reason I want this behavior is because our application is a proxy that runs in the background, but it must run as the logged in user. Normally it would be started automatically when a user logs in, or directly after the installation. But if the msi is installed remotely I still want it to be started as the logged in user, otherwise the user must start it manually or logout and login again (something the user wouldn't be aware of).

Regards,
Magnus
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Run an application as logged in user after remote instal

Hello Magnus,

When deploying remotely a setup package (e.g. using GPO) the installation is usually performed under "System" account. Therefore, your application will be launched under "System" account. I'm not sure if this can be achieved, but you can try to create your own custom action which will get the current logged in user account and then start your application under the current logged on user (instead of the current installing user).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”