How to uninstall a Windows Service when there is no executable for it left on the system?

前端 未结 7 2016
陌清茗
陌清茗 2021-01-29 18:14

How do I uninstall a Windows Service when there is no executable for it left on the system? I can not run installutil -u since there is not executable left on the s

相关标签:
7条回答
  • 2021-01-29 18:52

    Remove Windows Service via Registry

    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. Go to the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"

    3. Look for the service that you want delete and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).

    Delete Windows Service via Command Window

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

    sc delete

    You can also create service by using following command

    sc create "MorganTechService" binpath= "C:\Program Files\MorganTechSPace\myservice.exe"

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

    0 讨论(0)
提交回复
热议问题