When publishing a console application, I have a lot of settings that I can change when deploying. I can choose between azure, clickonce, docker, normal folder and I am also able to choose the target runtime and the deployment mode.
But when using the windows service template for my project and I want to publish this, then the GUI looks totally different. I am not able to choose the settings that I had with the console application. I am not even able to choose the target runtime nor the deployment mode. Despite all that when I continue, the folder where my windows service is deployed doesn't contain an exe file of my application. It contains the setup.exe, but that is not what I want. I want the exe file of the windows service itself.
Does anyone have an idea why the settings are different and why it only gives a setup.exe?
Here below the settings of the publish console application as it should be.

Here below the settings of the publish windows service template which looks totally different and with fewer settings.






I don't understand your question very well, I suggest you review the files created by the publishing process.
1.In Solution Explorer, select Show All Files.
2.In the project folder, expand bin/Release/net6.0/publish.
If you are publishing console applications in visual studio, you can refer to this document, which has detailed publishing steps. https://learn.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio?pivots=dotnet-6-0#publish-the-app