'Creating an installer for a windows service on Visual Studio 2022

typically I don't work with VS and C#, but my company requires it for this project. So kinda new on this stuff.

I got some code from a previous developer, which is just a .net service doing some stuff. Som adjustment had been done in the code my me, not a problem at this point.

But here comes the trick: I need to create an installer, .exe or .msi file, which installs the service on the windows machine where it get's executed. I tried so much, googled my ass off but nothing did the work for me.

Is there anyone that can help and explain, step for step, what I need to do in VS?

Very much thanks in advance!



Solution 1:[1]

I highly recommend the WiX Toolset to create an MSI for installing a Windows service. This tutorial takes you through the process from end-to-end, including setting up your development environment for WiX. You can see their service install documentation for a high-level overview. Also, this StackOverflow question is an excellent resource.

If you run into issues, I'm happy to help address them.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 John Glenn