Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to auto start window service

I have a window service which i developed in c# (vs2008). please tell me what should i do to make it auto start after installation and also auto start on every time when system gets restarted.

EDIT: I am using setup & deployment project to install it. Thanks

like image 214
Dr. Rajesh Rolen Avatar asked Dec 17 '10 06:12

Dr. Rajesh Rolen


People also ask

How do I run a service automatically?

Go to start type services. msc and press enter. On the services list that opens up, right click on the service and select Properties. The dialog that opens has an option 'Automatic' for starting your service.

Why service is not starting automatically?

1] Check Services Startup type msc and hit Enter to open the Services Manager. Here you can set its startup type to Automatic, Delayed, Manual or Disabled. Check if the specific service with whom you are facing problems is not set to Disabled. See if you can start it manually by clicking on the Start button.


1 Answers

Follow the instructions given here to add an installer to your Service application. Pay particular attention to step 5, where you set the StartType property.

To start the service after installation, see Automatically start a Windows Service on install

like image 198
Jay Riggs Avatar answered Sep 16 '22 19:09

Jay Riggs