Horsti
Horsti

Reputation: 21

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!

Upvotes: 2

Views: 5852

Answers (2)

Mahesh
Mahesh

Reputation: 1

If you don't see the Windows Service template, you might need to install the .NET desktop development workload using Visual Studio Installer.

Upvotes: 0

John Glenn
John Glenn

Reputation: 1629

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.

Upvotes: 5

Related Questions