Windows Service Installation Project

I am trying to create a configuration project for a windows service. Ive watched this tutorial and more, but after installing my service, I still don’t see this service. Ive added the main output of the service to the application directory and created a custom action to include this output in installation, commit, rollback, and uninstall.

He claims that it is installed correctly.

Should this work? Is there anything else I can try to install?

+6
source share
2 answers

Did you create an installer for your service? It is separate from the installation project.

See: http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller.aspx

You can create an installer by right-clicking on the Design Service window and selecting Add Installer .

+5
source

In my case, adding an installer was the first step, as described in dhirschl's answer. Then I needed to add custom actions to the installation project.

Right click installation project / view / user actions

then add the main output to each folder.

A source

0
source

Source: https://habr.com/ru/post/885824/


All Articles