How to manually add and remove Windows service

  
When installing MySQL, I found that there is a MySQL service in the windows service. It is obviously not installed and uninstalled completely. What should I do? Xiaobian tells you, then I want to delete this service. ! Command: sc delete Service Name.
Services are programs, routines, or processes that perform specified system functions to support other programs, especially low-level (near hardware) programs. In fact, a service is a special application that runs from the start of the service, while the normal application is in a sleep state after running until the user operates it again; in WinXP, the service is in the system. It starts automatically after loading, and does not need to log in, but the normal application that runs automatically is executed after WinXP loads and logs in.
For the installation service, there are generally two cases:
Scenario 1: Installation of a program that can be run as a service becomes a service of WinXP;
Case 2: Installation of a program that cannot be run as a service (ie, ordinary The application) becomes a WinXP service.
Using the installation tools: srvinstw.exe and srvany.exe, the tools provided in the Win2000 Resource Kit;
The following is a method of manually adding services, which can be added manually when the add tool is not found.
Add a service by modifying the registry:
In the Registry Editor, expand the branch "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services", and the service items installed locally are displayed in the right pane. To create a new service, just click "edit →new→item", and then name the item, such as "test"; then right-click the item and select "New →String value" or "New & Rarr; Dword value "
Add a service item to add the following key values:
"DisplayName", string value, corresponding service name;
"Description", string value, corresponding service description;
"ImagePath", string value, corresponding to the path where the server is located;
"ObjectName", string value, value "LocalSystem", means local login;
"ErrorControl", Dword value The value is "1";
"Start", Dword value, the value 2 means automatic operation, the value 3 means manual operation, the value 4 means prohibition;
"Type", Dword value, The application corresponds to 10, and the other corresponds to 20.
Also, create a new "Enum" item under "test". If some must be loaded via srvany, you must also add another Parameters subkey to provide a detailed path to the program to be added as a service. The path above needs to point to the path where srvany is located.
The above mentioned is how to add services, how to delete windows services, please continue to see:

Copyright © Windows knowledge All Rights Reserved