. NET installation Windows service configuration file Config

Source: Internet
Author: User

. 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

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.