You can create and manage services, or rather, services, in Windows using special utilities - Srvany.exe and Instsrv.exe. They are included in the Windows NT Resource Kit. The first is designed to control the operation of services, the second is to install / remove custom services.
Instructions
Step 1
Go to the main Windows OS menu by clicking on the "Start" button, then left-clicking on the "Run" item.
Step 2
In the "Open" field, enter cmd, then click on the "OK" button or press the Enter key on the keyboard.
Step 3
In the command line text box, enter the following:
Drive_name: / Full_Path_to_Instsrv_Program / Instsrv.exe
ServiceName / DriveName: / Full_Path to_Srvany_Program / Srvany.exe.
Press Enter to confirm.
Step 4
Next, you need to return to the Run dialog box and enter regedit in the Open field to launch the regular registry editor.
Step 5
Open the following branch in the registry editor:
HKEY_LOCAL_MACHINE / System / CurrentControlSet / Services / service name.
Step 6
In the upper toolbar, expand the "Edit" menu to correctly register the created service in the system.
Step 7
Select Add Parameter, and then enter Parameter in the field titled Parameter Name. As for the "Class" field, it should be left blank. Then use the Ok button to confirm the changes.
Step 8
Now, with the created parameter selected, select the Add Value command from the Edit menu.
Step 9
In the "Parameter value" field, enter "Application", in the "Data type" field - Reg_SZ. In the String field, enter the drive_name: / full_path_to_exe_service_file (do not forget to include the file extension at the end).
Step 10
Exit the registry editor.
Step 11
By default, the service that you create will start automatically. You can change this parameter by going to Services from the control panel or by using the net start service_name command.
Step 12
You can also edit the startup type of the created service by using the command full_path_to_sc_program / Sc.exe start service_name entered in the command line.