Friday 17 April 2009

Install/Uninstall and Manage Windows Service using Service Control (sc.exe)

Service Control program is a powerful tool that can be used to Install/Uninstall and perform other actions on Windows Services. Sample screenshot shows different parameters and options for sc.exe tool.

image

I will base my example on creating SVN version control Windows Service.

To install SVN Windows Service run

sc create "Subversion Server" binpath= "path_to_subversion\bin\svnserve.exe --service --root "C:\SVNRoot""
    displayname= "Subversion Dev Repository" depend= Tcpip start= auto

To Uninstall SVN Windows Service run

sc delete "Subversion Server"

Make sure that you put space after ‘=’.

Once SVN Windows Service is created allow svnserve.exe in Windows Firewall.

References

How to create a Windows service by using Sc.exe

Setting up a Subversion Server under Windows

1 comment:

  1. Thanks for giving the guidance about Install/Uninstall and Manage Windows Service using Service Control.
    For more details please visit
    windows mobile app // Android application development // iPhone application development

    ReplyDelete