Hi,
"tshad" <ts**********@ftsolutions.comwrote in message
news:uf****************@TK2MSFTNGP02.phx.gbl...
>I need to pass a few parameters to my Windows Service program. The end user
will be changing the parameters and settings should be saved.
A windows service with end user interaction?
What is the best practice
- use app.config
Read only
- use .ini file
Possible, I prefer this option
- use Registry
Possible
- write a Windows Application program and save the settings to database
table
You will have to, a window service has not user interaction. You should
write a win app to allow configuration changes.
If you use a file you could use a FileSystemWatcher to detect changes in the
config file and reload the configurations.
should I trust the end user to modify registry, .config or .ini file?
Never instruct an end user to change the registry !!!
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation