title: Windows service pass parameters
body: <p>I'm using this method: <a href="https://stackoverflow.com/questions/1195478/how-to-make-a-net-windows-service-start-right-after-the-installation/1195621#1195621">How to make a .NET Windows Service start right after the installation?</a></p>
  
  <p>The post starts with "posted a step-by-step procedure". How can I pass parameters to the OnStart function without using registry?</p>
  
  <p>I can pass parameters on this method <code>Main(string[] args)</code>. I'm calling <code>myapp.exe -install</code>.
  I want to call <code>myapp.exe -install path="c:/bla bla"</code>.</p>
  
  <p>And also move the path parameter to "OnStart". My OnStart exist on the YourService object in the example.</p>