I need to use InstallUtil to install a C# windows service. I need to set the service logon credentials (username and password). All of this needs to be done silently.
InstallUtil.exe sets StartupType=Manual
InstallUtil.exe
In case you want to autostart the service, use:
sc config MyServiceName start= auto
(note there there has to be a space after '=')