WINDOWS SERVICE PARAMETERS

  • Thread starter Thread starter Shazad
  • Start date Start date
S

Shazad

I am creating a windows service that requires parameters to start. The
service Startup Type is set to automatic therefore it starts when the
computer is started or rebooted. However the service fails because the
parameters do not persist.

If the service is started manually and the parameters entered it starts and
runs correctly. If the computer is rebooted the service attempts to start
but fails because the parameters are not used to start the service. Are the
start parameters just lost.

How can I overcome this?.
 
Personally I use the reg to get my start up parameters so this is not a
problem with me but have you tried setting the start up parameters in the
Services properties?

Regards,
John
 
Yes I have tried adding the "Parameters" subkey in the registery and then
added a value called AppParameters. This does not work.
 
Back
Top