title: NSIS check state of Windows Service
body: <p>I am writing NSIS script and i need to check service state (Running/Stopped/Paused/No exist) and to make some actions then.
  But i can`t use any user libs such as nsSCM.</p>
  
  <p>I found a script </p>
  
  <p><code>sc QUERY ServiceNameHere | FIND "RUNNING"</code> </p>
  
  <p>but i can`t find how to check the return result in NSIS script.</p>
  
  <p>Please help.</p>