title: C# Windows Service - Default Arguments on Install
body: <p>My application (which is a windows service) needs one command line argument which is the location of a config file.</p>
  
  <p>I want the service to be able to start automatically. Filling in the 'Startup parameters' value only applies to manually starting it and that value does not carry over after the service is stopped.</p>
  
  <p>I tried manually editing the "Path to executable" in the registry but the .net service doesn't regocnise it as if it were a command line (taking the 2nd section of the path as the arguments)</p>
  
  <p>Is there a way to setup a default argument on install (either using InstallUtil or any other way)?</p>
  
  <p>Thanks</p>