Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi,
how to implement solution for run application before the login to windows?

:rose:
Posted
Comments
Henry Minute 31-Jan-11 9:53am    
I think you will have to explain a little more about what it is that you are trying to do. i.e. what sort of application.
Manas Bhardwaj 31-Jan-11 9:56am    
Can you please explain further? Or may be what exactly your requirements are...
TheyCallMeMrJames 31-Jan-11 9:56am    
Does it need to be run in Windows? Does it require networking? Is the computer on a domain? These (and more) are all details which will drive the answer to this question.
Sandeep Mewara 31-Jan-11 10:01am    
Question is not clear. Kindly elaborate.
Abhinav S 31-Jan-11 11:09am    
Not clear.

1 solution

You need to develop a different type of project: Windows Service. Visual Studio provides a template to develop those. I'm not sure if this is what you need: it will be invisible process which could communicate with other programs using remoting, WCF, etc. To debug this things, you may need to log some information to system event log, or attach debugger to already running process, way more difficult in comparison to debugging of a regular application.

Look at the list of services, run:

%SystemRoot%\system32\services.msc /s


It will show system applet "Services". You executable should run as one more item in the list. Click context menu on any item. This is where you can Start, Stop the service, etc. Select "Properties". What happens on system startup, depends on startup type. If it is manual, you will need to go to this applet and Start it, in Automatic, it will be started before the first login, as you want. No matter how started, it will keep running if you log out.

Good luck,
—SA
 
Share this answer
 
v2
Comments
Nish Nishant 31-Jan-11 10:57am    
Proposed as answer, voted 5!
Sergey Alexandrovich Kryukov 31-Jan-11 11:11am    
Thank you, Nishant.
--SA
Espen Harlinn 31-Jan-11 15:07pm    
Good answer, 5+
Yusuf 31-Jan-11 16:33pm    
You Rock. +5

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