Create a Windows Service Installer

Source: Internet
Author: User

During this time, I have been writing Windows service. Every time I write and debug, I enter a command on the console to install, start, and uninstall Windows service,
Although the workload is not large, it is troublesome for a long time. So I installed a Windows service using. net.

First, create a project for installation and deployment in the solution, right-click the project name, and choose [add] --> [project output] from the menu.
In the displayed "add project output group" window, the first drop-down box lists other projects in the solution,
Select the Windows Service Project to be installed, select the primary output, and click [OK].

I thought this would work, but after the installation, Windows service is not installed as a service.
You must also add custom operations to the installation project. Right-click the installation project and choose View> Custom operation.
For example, add custom operations separately. In the application folder, select the primary output you just added.

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.