Creating an installer for C ++ Window Service Dynamically

I created a Windows service that checks the status of the printer.
The user can download this service from the website. I need to request the status of printers used by this user. Therefore, when the user clicks the download button, I want to save the user information in a file that my service can use. The service will use this information to retrieve printers from the database. I want to include this file in my installer. Therefore, I need to create an installer at runtime (i.e. when the user clicks the download button on my website).

How can I create an installer for win service dynamically using C #?

NOTE: my win service is written in C ++. I know about WIX.

+3
source share
2 answers

In WiX, you can create custom actions that are arbitrary code that you write (you provide a .dll that can be created using C ++). In a custom action, you can generate your user / location settings file.

0
source

, InstallShield, , .cab (, ) . , ( , - ). , , .

, , , .

+1

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


All Articles