Many windowsProgram, Automatically run at startup, generally there are two methods:
1. Add a startup Item
2. Write to the registry run
These two types of startup levels are insufficient. Generally, after the system is started and the program is not running, the user uses the task manager to kill the process.
A high startup level is used as a Windows system service. After a user logs on to the interface, the system immediately loads the service. Generally, a graphic interface program is developed. First, it is not considered to run as a Windows service, second, manually add a graphic interface that cannot be displayed. The solution is as follows:
1. install your program
2,Running ToolSrvinstw.exe (you can search for this tool)
3,Select to install the service
4. Select a local host
5. Enter the service name: enter the name of the service you want to add
6. SelectSrvany.exe (you can search for this tool)
7. SelectAllows desktop and service interaction, which is the key to solving the graphic interface display.
8. Select the Service Startup Method
9. modify it in the registry. You can use the following content to create the reg file and modify it automatically.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ service name \ Parameters]
"Application" = "C: \ Program Files \ program installation path and select the program to be run"
Problems: the running program interface cannot be displayed in full screen, and the taskbar may appear.