Thursday, 23 February 2012

how to delete windows service from system

Introduction:

Here I will explain how to delete windows service in our system.


Description:

In previous article I explained clearly how to create windows service and how to run windows service in scheduled intervals and how to install windows service in system. Now I will explain how to delete windows service in our system.
To delete windows service in system it’s very easy check previous post how to install and uninstall windows service. In some cases even if you uninstall still you will find windows service in your system at that time we can delete the windows service in different ways.

First Way

Start --> Run --> Type Regedit or Regedt32 and click enter button now one window will open like this

After that open following registry entry

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

After open services check for your service and delete it.

Second Way

First select your windows service name and open command prompt here if you using Windows 7 or Vista you’ll need to right-click the command prompt and choose Run as Administrator. We’ll use the sc command to actually do the work.

The syntax used to delete a service is this:

sc delete ServiceName

For example to delete service it would be like this 

EX: sc delete “WinServiceSample”

No comments:

Post a Comment