title: Octopus deploy hangs when trying to install TopShelf app
body: <p>I have an service where we use TopShelf. Now I would like to install the service with Octopusdeploy but I can't get it to work. The tentacle seems to hang when I'm trying to start the service. The Deploy.ps1 looks like: </p>
  
  <pre><code>$cmd = "$OctopusPackageDirectoryPath" + "\NameOfExe.exe"
  
  &amp; $cmd "stop"
  &amp; $cmd "uninstall"
  &amp; $cmd "install"
  &amp; $cmd "start"
  </code></pre>
  
  <p>It works just fine to execut that powershell script in powershell, but the tentacle gets stuck on the last step. I can see in the log that the service is stopped, uninstalled and installed but it hangs on start.</p>
  
  <p>Any recommendations?</p>