title: C# How to create a Setup project for a Windows Service to install it automagically?
body: <p>I have seen multiple Windows Services getting installed in my computer with just an Setup.exe or .msi... is it something special that it needs to be done with the setup project to let such Windows Services installed in a easy way without Installutil.exe?</p>
  
  <p>I have tried and it just doesn't install the Service. I know how to use Installutil but that I would think it's just for testing. I need to be able to install my windows service with an Setup.exe because I want to distribute my Service with its configuration Tray app. </p>
  
  <p>What would be the correct way to install the service and then my app? They both use a same DLL created in the same solution.</p>
  
  <p><a href="https://stackoverflow.com/questions/2777401/problem-while-building-a-setup-project-for-a-windows-service">Problem while Building a Setup Project for a windows Service?</a></p>
  
  <p>I looked at the link above but its about the Setup Project which I already know how to do, the problem is how to make my Setup project working... my DLL is getting up in place, the Tray app is working as well, the problem is the Service not getting installed it is just giving me the .exez</p>
  
  <p>but I need it to be installed correctly like be up and running at reboot and in the Service Control Manager.</p>