Difference between revisions of "Delete a Windows Service"

From PeformIQ Upgrade
Jump to navigation Jump to search
(Created page with '=Info+ * http://geekswithblogs.net/shahedul/archive/2006/10/13/93984.aspx Recently, I was trying to delete a windows service. Normally it should not be necessary to manually de...')
 
Line 1: Line 1:
=Info+
=Info=


* http://geekswithblogs.net/shahedul/archive/2006/10/13/93984.aspx
* http://geekswithblogs.net/shahedul/archive/2006/10/13/93984.aspx
Line 29: Line 29:




[[Windows]]
[[Category:Windows]]

Revision as of 20:20, 4 January 2012

Info

Recently, I was trying to delete a windows service. Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).

Its very easy to remove a service from registry if you know the right path. Here is how:

  1. . Run Regedit or Regedt32
  1. . Find the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"
  1. . Look for the service there and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).

alternatively, you can also use command prompt and delete a service using following command:

sc delete < SERVICE name>

or to create, simply type

sc create <SERVICE name>

If you have space in the file path you need to use quotation marks ("). For example:

sc create "MySQL" binpath= "C:\Archivos de programa\MySQL\MySQL Server 5.1\bin\mysqld.exe"


NOTE: You may have to reboot the system to get the list updated in service manager.