Click here to Skip to main content
15,877,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a windows tray application which acts as HUB to manage requests, I have routed it to startup, and so starts automatically when user logs into PC and stops when user logs off.


Is there any way, can we configure to start this tray app when system boots up (like windows service works without logging in).


What I have tried:

Created a windows service earlier but had to switch to tray app due to installation issues and other corporate permission issue.
Posted
Updated 28-Sep-16 22:52pm
v3
Comments
Suvendu Shekhar Giri 29-Sep-16 3:37am    
Why you want this to start this before user logs in? Is there any specific requirement?
Shrikant S 29-Sep-16 4:05am    
Thanks for the reply Suvendu,

I want this app to run/work, regardless of user's log in/off.
F-ES Sitecore 29-Sep-16 4:11am    
Then you'll need to implement it as a service.

1 solution

The problem is you want two things at the same time which are not really compatible:
- you need something running even with no session opened; only a service can do that.
- you need a program which interacts with the UI; a service cannot do that.

You then have to split it into two distinct parts:
- the service wich will run in the background but won't have any access to UI;
- an application, launched in user mode, which will communicate with the service and display what it needs to.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900