How to add program to Windows Service?

If you want to add your own program to Windows Service (as you might want to keep track of things), there is an excellent utility that you can use. It is called NSSM Non-Sucking Service Manager. Download it from the above link (use correct version 32vit or 64) then unzip it and lets save it to c:\services folder or anywhere else you prefer.

Use the following command to add a program to services

This will popup a gui. Click the browse button to navigate the program that you want to start as service. Note that you can put Applications that has GUI into startup but the GUI part will not work (it will not be displayed) but the code behind will work.

How to Uninstall a Windows Service

Issue this command

It will ask to confirm remove of the windows service. Click ok and it will be remove from services.

Please not that both the above commands can be start with out supplying *ServiceName*. In that you will be asked to type service name in the graphical user interface.

Here is complete help about nssm

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*