How to register exe file as system service under Windows 7 Ultimate system

  
                                     

1. First, download the “instsrv.exe” tool from the Internet to install and delete the service, and then download “srvany.exe” to run the program as a service;

2, the two gadgets are stored in the same disk directory, such as in the D drive directory;

3, then press "ld+;" on the keyboard to open “ run & rdquo; window Enter the “cmd” command and press Enter to enter the command prompt window;

4. In the command prompt window that opens, enter the following command to register the service:

D :instsrv.exe tjserver d:srvany.exe //tjserver(PS: where tjserver is the service name, this command means to register the program of srvany.exe as a system service.)

5, then press “Win+R”Open the "Run" window, enter the "regedit" command, press Enter to open the Registry Editor;

6. In the open Registry Editor window, expand the following Registration item HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices;

7. Under Services, find and select the service name tjserver just registered, right click and select the new item, the name is “Parameters”;;

8. Click on Parameters and create a new name in the right window. Application string value, set its sensitivity value to the path of the program you need to run as a service, such as the path here is "D: ools js.exe".

9, if you want to run the program for the service is required after the operation of the interface, then you can find the management tool in the control panel, then open the service, find the service just created, right-click to open the properties, Select the Login tab, log in to select the local system account and check Allow the service to interact with the desktop. Finally click OK, so that your service will see the interface after it starts.

10, if you do not want this newly registered service, please stop the service first, then use the command "D:instsrv.exe tjserver remove" to delete the service.

Copyright © Windows knowledge All Rights Reserved