简体   繁体   中英

Creating a windows service which will start on user log in

I have a exe of windows form application which is copied in AppData folder of each logged in user. Currenly that exe gets started after user log in but it takes lot of time to start. So I am thinking of developing a windows service which will invoke that exe as soon as the User logs in. I want to start that exe separately for each logged in user. Am I going in right direction developing a windows service if yes please tell me how to do that else what is ideal way to do this?

As far as I know, the service can only interact with the default desktop.

In a corporate network based on Active Directory, you would use a group policy to run the exe for each user.

On a stand-alone PC, you could set the startup programs for each user.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM