Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

how to delete windows service from system

Jun 14, 2011
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”

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

1 comments :

Mehtab Ali said...

Nice Post Suresh...:) please keep it up..

Give your Valuable Comments

Other Related Posts

© 2010-2012 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.