I Have a Worker Service written in c# that needs to be installed as a Windows Service (configured by calling the UseWindowsService
method).
This guide specifies how to create an installer for a .NET 6 application, but this installer only copies the app's files.
How can I install the service contained in the executable?