title: Service does not start
body: <p>I created a Windows service with Delphi and used two method to install, start and stop.</p>
  
  
  
  <p><strong>Method 1</strong></p>
  
  <p>if i install this service using commandline</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\MyService\ServiceApp.exe /Install
  </code></pre>
  
  <p>it installed successfully and i can start and stop too in the service console.</p>
  
  <p><strong>Method 2</strong></p>
  
  <p>but if i install the same service with different name using sc
  e.g. </p>
  
  <pre class="lang-none prettyprint-override"><code>C:\Windows\system32&gt;sc create myservice binpath= c:\MyService\ServiceApp.exe
  </code></pre>
  
  <p>I see it is installed but i can not start the service using service console as well as 
  with </p>
  
  <pre class="lang-none prettyprint-override"><code>sc start myservice
  </code></pre>
  
  <p>when i do query using SC , result are as follows</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\Windows\system32&gt;sc query myservice
  
  SERVICE_NAME: myservice
          TYPE               : 10  WIN32_OWN_PROCESS
          STATE              : 2  START_PENDING
                                  (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
          WIN32_EXIT_CODE    : 0  (0x0)
          SERVICE_EXIT_CODE  : 0  (0x0)
          CHECKPOINT         : 0x0
          WAIT_HINT          : 0x7d0
  </code></pre>
  
  <p>up till now i was using /Install but i want to install same service multiple times with different names, I got this idea of using from this post. (<a href="https://stackoverflow.com/questions/18508628/how-to-install-a-windows-service-from-command-line-specifying-name-and-descripti">How to install a windows service from command line specifying name and description?</a>)
  can anybody explain difference of behavior between /Install and SC?</p>