title: Install service with delphi?
body: <p>I want a small executable to install my service with the usual</p>
  
  <pre><code>path\servicename /install
  </code></pre>
  
  <p>I've tried running a simple shellexecute in a program with elevated rights, </p>
  
  <pre><code>ShellExecute(0, nil, 'cmd.exe','/C servicepath\servicename.exe /install', nil, SW_HIDE);
  </code></pre>
  
  <p>but the service doesn't install. I am not exactly a wiz with ShellEx so I suspect I have gotten it wrong; kindly show me the errors of my ways and possibly supply the correct shellexecute line</p>