title: Installing a win32 service using MSBuild and Microsoft.Sdc.Tasks
body: <p>I'm trying to install windows service using the Microsoft.Sdc.Tasks library. </p>
  
  <pre><code>&lt;ControlService Action="Install"
      ServiceName="Service1"
      User="XXX
      Password="XXX"
      ServiceExePath="$(DeployFolder)\XXX.exe"/&gt;
  </code></pre>
  
  <p><strong><em>But I keep getting prompted for the user and password!</em></strong> This will not work as I'd like to have it as an automated build on the build server. I mean, the user and password that I want to run the service under are in the actual target. How do I get it to install the service using the configured user and password and not prompt for it?</p>