title: Install Jenkins slave as a Windows service in command line
body: <p>I have been looking a lot on Google on how to install the service in 
  command line (so without manual interaction) but I am stuck on how to 
  get the jenkins-slave.exe</p>
  
  <p>I found those instruction 
  <a href="https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+as+a+Windows+service" rel="noreferrer">https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+as+a+Windows+service</a> 
  but I can't figure how to get the executable. I have downloaded and run 
  the slave.jar with the right key, which connects the slave, but the exe 
  is not generated.</p>
  
  <p>I found this page 
  <a href="https://github.com/kohsuke/winsw/blob/master/doc/installation.md#winsw-installation-guide" rel="noreferrer">https://github.com/kohsuke/winsw/blob/master/doc/installation.md#winsw-installation-guide</a> 
  to install it manually but that sounds like re-invented the wheel when 
  the jar can do it. Plus there is a risk the WinSW.exe is different and 
  doesn't get updated by the plugin (I saw some automatic update code in it).</p>
  
  <p>So is there a way I can download the jenkins-slave.exe or generate it?
  or is there a way to run the "Install as a service" in command line from 
  the slave.jar?</p>