title: Windows Service Setup Project Problems Converting From VS.NET 2008 to 2010
body: <p>I'm trying to convert a solution from VS.NET 2008 to 2010. The solution includes a Windows Service project and a Setup project that installs the Windows Service. I'm having trouble compiling the Setup project. I've tried starting this over from scratch a few times, following the tutorial <a href="http://msdn.microsoft.com/en-us/library/zt39148a.aspx" rel="nofollow noreferrer">here</a> under the section titled <strong>To create a setup project for your service</strong>.</p>
  
  <p>When I simply follow these steps and build the project, I get this error:</p>
  
  <pre><code>Unable to build custom action named 'Primary output from &lt;name&gt; (Release x86)', InstallerClass property is only valid for assemblies.
  </code></pre>
  
  <p>(where  is the name of my Windows Service project). A search for this error brings up <a href="http://msdn.microsoft.com/en-us/library/447a3y7x%28VS.71%29.aspx" rel="nofollow noreferrer">this</a> page on MSDN which tells me to set <strong>InstallerClass</strong> to <strong>False</strong>. I do so for each of the 4 Custom Actions. After making this change and building, I get the following error:</p>
  
  <pre><code>Unable to build custom action named 'Primary output from &lt;name&gt; (Release x86)' from project output group 'Primary output' because the project output group does not have a key file.
  </code></pre>
  
  <p>Googling for that, I only get a single <a href="http://msdn.microsoft.com/en-us/library/eys6tc94%28VS.71%29.aspx" rel="nofollow noreferrer">hit</a>. Don't even bother clicking the link, the full text is: "Remove the custom action and replace it with a custom action pointing to a project output group that has a key file."</p>
  
  <p>What the h does that mean? Can anyone help me figure out what I'm doing wrong here?</p>