zoukankan      html  css  js  c++  java
  • 转: 如何删除windows service (How to delete a windows service)

    How to delete a windows service
     

    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>

    Update:
    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"

    Thanks to Maya.

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

    原文: http://geekswithblogs.net/shahedul/archive/2006/10/13/93984.aspx

    作者:BobLiu
    邮箱:lzd_ren@hotmail.com
    出处:http://www.cnblogs.com/liuzhendong
    本文版权归作者所有,欢迎转载,未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    四大组件的工作过程
    理解Window和WindowManager
    Android中的动画
    View的工作原理
    62、滑动窗口的最大值
    61、数据流中的中位数
    60、二叉搜索树的第k个结点
    59、序列化二叉树
    58、把二叉树打印成多行
    57、按之字形顺序打印二叉树
  • 原文地址:https://www.cnblogs.com/liuzhendong/p/2044629.html
Copyright © 2011-2022 走看看