How to manually add and delete Windows services (1)

  
WinXP, the service is automatically started after the system is loaded, without the need to log in, but the normal application running automatically is executed after WinXP is loaded and logged in. For

installation services, generally divided into two cases: a case where

: installation can be run as a program service WinXP service;

Case 2: not installed A program that runs as a service (that is, a normal application) becomes a service of WinXP.

use installation tools: srvinstw.exe and srvany.exe, Win2000 Resource Kit Tools provided;

Here is the manual method to add services, add the tool can not find time to apply manual Add a service.

added by modifying the registry service:

In the Registry Editor, expand the branch "HKEY_LOCAL_MacHINESYSTEMCurrentControlSetServices", displayed in the right pane is locally installed service items. To create a new service, just click "Edit → New → Item" and name the item, such as "test"; then right click on the item and select "New → String Value" or "New → DWord Value". .

services add a particular need to add the following key:

"DisplayName", a string value, corresponding to the service name;

"Description", string value, corresponding to the service description;

"ImagePath", a string value, a path should service routine;

"ObjectName", a string value, the value "LocalSystem", represents the local log;

"ErrorControl", DWord value, a value of "1";

"Start", DWord value, value of 2 indicates automatic operation, manual operation a value of 3, a value of 4 represents ban;

"Type", DWord value, corresponding to the application 10, 20 corresponding to the other.

Also, a new "Enum" item in the "test" items. 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.

mentioned above is how to add service, how to remove Windows service it, please read:


Copyright © Windows knowledge All Rights Reserved