how to start the windows service through other application with start type automatic

naresh

Active member
Joined
Jul 4, 2006
Messages
38
Programming Experience
1-3
Hey i want to select the start type for the windows service to automatic by using another application . Is it possible. if so please reply
thanks in advance
naresh
 
Start/stop the service with the ServiceController class, see tips at http://www.vbdotnetforums.com/showpost.php?p=32507&postcount=2.

The service startup type is an installation option, this information is stored in the registry, where you can modify it. Here some info about this http://www.dotnet247.com/247reference/msgs/20/100138.aspx In short, it's in
"LocalMachine/SYSTEM/CurrentControlSet/Services/ServiceName"
where you set 'start' key to value (0)Boot (1)System (2)Automatic (3)Manual (4)Disabled
 
Its working fine thanks,

At the same time i want to start the service through programming. Can u help in that,

thanks in advance,
Naresh
 
Back
Top