. NET installation for Windows services:
In the Windows Service Project (WINDOWSSERVICE1) code file, there is an app. Config profile that allows you to make changes to the time and so on without rebuilding the project; we all know that it is impossible for the user to make changes in the code file. Do you want to regenerate, give the user just an install file package Ah! How do I change the configuration? In the Windows Service installation file (Setupdownloadfile), this profile is gone, do not worry ah, after the completion of the Windows Service Code development, the corresponding installation files are also generated successfully, locate the Debug folder where this installation file is located, Double-click the EXE installation file, follow the installation procedures to remember the installation directory, after the installation, the installation directory will produce some files, There is a configuration file WindowsService1.exe.config that has the same name as the Windows Service Code project for App. CONFIG. Need to change some configuration in this file to change it!
Install the Windows service on the server, copy the. msi and. exe files under the Debug folder under installation files (setupdownloadfile) to the server computer, click EXE files to install, and after successful installation, the computer--management-- The service can see the name of this Windows service (this name is the Displaynme and ServiceName properties in the installer for the WindowsService1 project) and can be started manually and the service will run. You can see the name of this service in the Windows Task Manager process (WindowsService1.exe)
. NET installation Windows service configuration file Config