Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
How to start your application before windows login? I know that works with console application (like in quick heal defragement part) but does it work with windows form also and if yes, how it works with both?

Thanks in advance
Posted

1 solution

No, you cannot.
A Windows Service can be started before a user logs in. But that cannot use Windows Forms.
 
Share this answer
 
Comments
agent_kruger 3-Feb-14 8:41am    
i tried it with windows service but it starts my program after login. Why this is so?
lukeer 3-Feb-14 8:45am    
IIRC, it depends on who is running the service. If it's your user, then it cannot run without him being logged in.
Try setting the service to be executed by System.
Bernhard Hiller 4-Feb-14 2:28am    
That's wrong. Try it - write a small service, change the user to run the service, and look at the entries in the event viewer.
agent_kruger 21-May-14 11:30am    
sir, is there any way to run our console application before windows login? no admin needed here as it is before login.

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