title: Installing a Windows Service -Setup.exe fails
body: <p>There is a weird issue I am facing. I created my first windows service looking through various blogs and tutorials.
  Then created setup for that adding installer etc. It works fine while installing , un-installing via Visual Studio but it fails when i deploy it .  </p>
  
  <pre><code>Below is a summary of the errors, details of these errors are listed later in the log.
      * Activation of C:\Users\bhuvint\Documents\Visual Studio 2010\Projects\CPNS Library\ServicePackage\CommonPushNotificationWindowsService.application resulted in exception. Following failure messages were detected:
          + You cannot start application CommonPushNotificationWindowsService from this location because it is already installed from a different location.
          + You cannot start application CommonPushNotificationWindowsService from location file:///C:/Users/bhuvint/Documents/Visual%20Studio%202010/Projects/CPNS%20Library/ServicePackage/CommonPushNotificationWindowsService.application it is already installed from location file:///C:/inetpub/wwwroot/ServicePackage/CommonPushNotificationWindowsService.application. You can start it from location file:///C:/inetpub/wwwroot/ServicePackage/CommonPushNotificationWindowsService.application or you can uninstall it and reinstall it from location file:///C:/Users/bhuvint/Documents/Visual%20Studio%202010/Projects/CPNS%20Library/ServicePackage/CommonPushNotificationWindowsService.application.
  </code></pre>
  
  <p>I have already un-installed the service and trying to install it from the deployed service in the same pc to test. But it fails with above error. 
  <strong>I feel i have deployed the windows service the wrong way. Could you guys please suggest how to deploy a windows service ??</strong> <em>(I have looked through net. All suggest building it and installing it from visual studios. But how to publish it is the thing which i need.)</em></p>
  
  <p>Please help asap.</p>