2

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!

Horsti
  • 21
  • 1
  • 3
  • https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer#add-installers-to-the-service – J.Salas Jan 21 '22 at 13:58
  • 1
    Thanks for your answer, I already tried this one. Describes it pretty good. But it does not tell me, how to create an installer for a different machine – Horsti Jan 21 '22 at 14:06

1 Answers1

4

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.

John Glenn
  • 1,469
  • 8
  • 13