Comment uninstall a Windows service if the files do not exist anymore?

How do I uninstall a Windows service if the files do not exist anymore?


Source : Stack Overflow [windows]

You have at least three options. I have presented them in order of usage preference.

Method 1 - Vous pouvez utiliser the SC tool (Sc.exe) included in the Resource Kit.
(included with Windows 7/8)

Open a invite de commandes and enter

sc delete <service-name>

Tool help snippet follows:

DESCRIPTION:
        SC is a command line program used for communicating with the
        NT Service Controller and services.

delete----------Deletes a service (from the registry).

Method 2 - use delserv

Download and use delserv ligne de commande utility. This is a legacy tool developed for Windows 2000. In current Window XP boxes this was superseded by sc described in method 1.

Method 3 - manually delete registry entries (Notez que this backfires in Windows 7/8)

Windows services are registered under the following clé de registre.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Search for the sub-key with the service name under referred key and delete it. (and you might need to restart to remove completely the service from the Services list)