1. Create a new "installation project" project;
2. Add all the corresponding project files in Solution Explorer (right-click "add"> "file" on the project ");
3. Click "Custom operation Editor" at the top of solution Resource Manager ";
4. In the "Custom operations" view, click "Install" and Right-click "add custom operations ", in the displayed window, select items in the project, select the EXE file of the corresponding Windows service, and click OK;
5. Click "Install" and select the Windows Service from the previous step. ProgramFile. In the Properties window, set the parameter (arguments) to "/install". (This step allows the installer MSI to automatically install Windows service)
6. Add the EXE file of Windows service in the "Unload" item, and set the parameter (arguments) to "/uninstall" in the Property Window "; (This step can automatically uninstall Windows service when "adding/deleting programs)
7. Generate the project file.
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.