How to create an installation package for Windows Services

Source: Internet
Author: User
Deploy Windows Services
(1) create a new Windows Service Project server1
(2) Enable service1 CodeView, locate the onstart part, and add the code
(3) switch to the design view, right-click to add and install Program
(4) switch to the newly generated project installer. in the CS design view, locate serviceprocessinstaller1, set the account attribute to LocalSystem, and set the servicename attribute of serviceinstaller1 to server1 (Service name ), starttype attribute is set to automatic (the service is automatically started when the system starts)
(5) Close the project.
(6) create a new installation project serversetup (create an installation project for the service just now)
(7) Right-click and choose add> project output> main output> service1> OK.
(8) Right click-View-custom operation-custom Operation Right click-add custom operation-open application folder-select the primary output just now-OK
(9) re-build the installation project-right-click to install
(10) In the Service Manager (my computer-right-click-Manage-services and applications-services) Find the server1 service and start the service

DOS installation service
First go to the directory: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727
Then: installutil ???. EXE installation service
Installutil ???. EXE/u uninstall service

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.