How to customise settings in a windows service...?
I have written a windows service that does a few simple tasks.
I would like to customise some properties for this service, that can be changed at runtime at a later date.
What's the best way to go about this?
I am thinking that by adding a form and a systray icon to my windows service I can popup a settings form when clicking on the systray icon.
This form would then alloow me to customize data...but where to save? Config file? Registry?
Any best practises on this?
Woka
Re: How to customise settings in a windows service...?
I assume that you have the systray and form running under a different context (user) interacting with the service so I would say a config file definately but it should be stored in the appdata folder if the settings are user specific. If not then of course a public location. Avoid the registry IMO.
Woof!