title: How to Configure the Windows Service Release Tasks like Install TopShelf Windows Service in VSTS?
body: <p>I am working on DevOps with VSTS. I created the simple windows service application using VS2015 for that I configured the release definition in VSTS by adding this tasks through this <a href="https://marketplace.visualstudio.com/items?itemName=jabbera.windows-service-release-tasks" rel="nofollow noreferrer">Windows Service Release Tasks</a>.</p>
  
  <p>I configured the <strong>Start Windows Services</strong>, <strong>Install (TopShelf) Windows Service</strong> and  <strong>Stop Windows Services</strong> tasks successfully.</p>
  
  <p>Configuration of <strong>Install (TopShelf) Windows Service</strong>
  <a href="https://i.stack.imgur.com/j4T82.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j4T82.png" alt="enter image description here"></a></p>
  
  <p>During release the above <strong>Stop</strong> and <strong>Install</strong> tasks are run successfully but <strong>Start</strong> task failed with the following error.</p>
  
  <blockquote>
    <p>The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: No such services: FirstService</p>
  </blockquote>
  
  <p>Because the Install(TopShelf) Windows Service task will not be installed an windows service in machine. But it simply succeded.</p>
  
  <p>I have the few questions like </p>
  
  <ol>
  <li>what is the difference between <strong>Install(TopShelf) Windows Service</strong> and <strong>Install and Start Windows Service</strong> VSTS release tasks.</li>
  <li>If I used the <strong>Install(TopShelf) Windows Service task</strong>, It works only  if you have already existing windows service is running in virtual machine otherwise it will failed. But if I used the <strong>Install and Start Windows Service</strong> task, It will be installed new windows service in virtual machine. But I am unable to give Displayname and Description of the installed windows service.</li>
  </ol>