How to register an EXE file as a system service under Windows 7 flagship system

Source: Internet
Author: User

1, first to the online download "Instsrv.exe" Tool for system installation and removal services, and then download "Srvany.exe", the program can be operated in a manner of service;

2, the two small tools stored in the same disk directory, such as storage in the D disk directory;

3, then press "Win+r" on the keyboard to open the "Run" window, enter "CMD" command and press ENTER to enter the command Prompt window;

4. In the Open Command Prompt window, 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 Srvany.exe program as a system service. )

5, then press "Win+r" to open the "Run" window, enter the "regedit" command, return to open Registry Editor;

6. In the Open Registry Editor window, expand the following registry entry hkey_local_machinesystemcurrentcontrolsetservices;

7, under the services to find and select just registered service name Tjserver, right-click the new item, named "Parameters";

8, click to select Parameters, in the right side of the window to create a new name called "Application" string value, set its sensitive value to the service you need to run the path of the program, such as the small set here is the path of "D:toolstjs.exe."

9, if you want to do as a service running the program is in the running after the interface, then you can find the admin tool in the Control Panel, then open the service, find the service you just created, right-click on the property, check the Login tab, check the Local System account and select the Allow service to interact with the desktop, and then click OK. This will enable your service to see the interface when it is started.

10, if you do not want this just registered services, then please stop the service, and then use the command "D:instsrv.exe tjserver remove" Delete the service can be.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.