简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM