Solved

configure Windows service

Posted on 2012-03-28
3
296 Views
Last Modified: 2012-04-14
is it possible to start the windows service automatically after installation?
0
Comment
Question by:singsunn
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
mikho earned 250 total points
ID: 37779171
try starting it with code.... example here :
http://www.csharp-examples.net/restart-windows-service/
0
 
LVL 86

Assisted Solution

by:jkr
jkr earned 250 total points
ID: 37779228
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
 
LVL 86

Expert Comment

by:jkr
ID: 37779562
Ooops, to directly start it, that's just

sc myservice start
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question