Implementing win service in configuration

I have a winning service that I want to present in all my products. So, how can I add a configuration service to all the settings of my projects. I am trying to add utility files to setup (exe, config ref dll), but it is not configured automatically, and I have to use installutil.exe. How to install it using my products without using installutil.exe. Can I use ServiceProcessInstaller and ServiceInstaller in an installation project?

Thank you so much

+3
source share
2 answers

First read about creating settings (yes, you can use ServiceProcessInstaller and ServiceInstaller in the setting)

Next, consider creating a merge module. The merge module is like a library that you can include in your customization. Thus, you would create a merge module for your service, and you would include this merge module in each of your product settings.

Edit (added instructions for setting up the merge module)

First, make sure your service is installed correctly if you are using InstallUtil (this step verifies the spelling and binding of your installation installer and the service installer code).

Then, once this works, I think that all you need to do is configure your merge module to install the service. Here's how:

  • .

  • "" | ( )

  • " " "" " " ( )

  • " " "Look In" " "

  • " " ( )

  • " " "".

  • " " ( . , )

  • .

  • Uninstall, .

: , (msi) . , , .

!

+3

6 . 9, InstallUtil.exe .

, InstallUtil.exe, / . , .

, .

+3

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


All Articles