configure Windows service

is it possible to start the windows service automatically after installation?
singsunnAsked:
Who is Participating?
 
mikhoConnect With a Mentor Commented:
try starting it with code.... example here :
http://www.csharp-examples.net/restart-windows-service/
0
 
jkrConnect With a Mentor Commented:
All you need to do is setting 'SERVICE_AUTO_START' as the 'dwStartType' parameter to 'CreateService()' (http://msdn.microsoft.com/en-us/library/windows/desktop/ms682450(v=vs.85).aspx). Alternatively, use 'sc.exe' after the installation, i.e.

sc config myservice start=auto
0
 
jkrCommented:
Ooops, to directly start it, that's just

sc myservice start
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.