[Download source code] share a Windows service that supports self-Installation and self-installation. Download the source code for windows
This program comes from www.codeproject.com
I forgot the specific source.
On the server side, I generally use the open method called in the windows service, so that you can see the interface and avoid exiting the program when the system logs out. It also supports boot.
It is only used in windows server 2003 and. net2.0 environments, and is not tested in other runtime environments.
Clicking a service program can enable automatic installation and uninstallation, which is easy to use.
In the configuration file, the location and address of the server-side program are set.
The server program is another program used to communicate with the client. Windows Service is used to open this server-side program
The configuration file of the windows service program is as follows:
<? Xml version = "1.0" encoding = "UTF-8"?> <Configuration> <paiettings>
// Server-side program location <add key = "FileName" value = "F: \ AppServer \ AppServer.exe"/> </appSettings> </configuration>
After the service is started, the server program on this address will be opened
To view the program interface, you need to set up the service after installation.
In the service, find the service and right-click Properties.
Source File Download