Shahed's blog

Sharing my thoughts and work

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 0 Stories | 44 Comments | 10 Trackbacks

News

Archives

Post Categories

Friday, October 13, 2006 #

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).

However, I installed some beta products and a service created by one of the applications was not removed automatically. Its very easy to remove a service from registry if you know the right path. Here is how I did that:

1. Run Regedit or Regedt32

2. Find the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"

3. 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>

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