Help!! Windows service question.

  • Thread starter Thread starter Kurt Skaronea
  • Start date Start date
K

Kurt Skaronea

Not sure if this is the right spot for this, but I
couldn't find any other logical place.

I have a service that installs and runs fine.

In the properties dialog of the service, on the General
Tab, I enter a path and filename that is passed to the
args parameter of the services OnStart method. This
works fine, but the properties dialog refuses to save the
data in the Start parameters field. The Apply button
never enables.

What do I need to do to get this to stick?

Thx

Kurt
 
.. . .
In the properties dialog of the service, on the General Tab,

IIRC, this field is only used for starting the service Manually.

If you want to use these arguments for when the Service is started
Automatically, you'll have to install the service differently (effectively
"hard-coding" them so the Service Controller knows about them) or
move them into a configuration file of some sort that the Service reads
on startup.

HTH,
Phill W.
 
Back
Top