Re: Passing parameters best practice

Tech-Archive recommends: Fix windows errors by optimizing your registry



I think no matter what mechanism you use, you should have a front end
interface for the user to use. The user shouldn't have to dig into the
registry, or the config file of the application.

These various places have various degrees of security. If your parameters
don't need to be secure, then you could go either the registry route, or
app.config.

No matter what route you take, you will need to restart your windows service
to pick up the new configuration settings.

"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
news:uM$sn%239uGHA.324@xxxxxxxxxxxxxxxxxxxxxxx
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.

What is the best practice
- use app.config
- use .ini file
- use Registry
- write a Windows Application program and save the settings to database
table

should I trust the end user to modify registry, .config or .ini file?

Thanks,

Tom



.



Relevant Pages

  • Re: Best way to use INI file
    ... I was told that there may be some issues with the security settings on ... I didn't have a way to test writing to the registry and I ... Is there any particular reason you are using an INI file rather ... than GetSettings and SaveSetting to store data in the registry. ...
    (microsoft.public.excel.programming)
  • Re: Best way to use INI file
    ... I was told that there may be some issues with the security settings on ... I didn't have a way to test writing to the registry and I ... Is there any particular reason you are using an INI file ... rather than GetSettings and SaveSetting to store data in the registry. ...
    (microsoft.public.excel.programming)
  • Re: Reg/INI Discussion from much earlier
    ... >in the event of an improper shutdown, the registry is NOT saved. ... >uncontrolable factor and the user wants to save his/her settings. ... Using both the Registry and the INI file has got to be /slower/ than ... I should really do a similar test with FileMon ...
    (microsoft.public.vb.general.discussion)
  • Re: privacy settings in registry
    ... > Im trying to read the privacy settings from the registry. ... > the thing is...the registry values dont change, no matter what i set the ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: INI formatting
    ... Microsoft's with program settings. ... the registry in Vista. ... But I can see where this restriction in Vista ... | into INI file located in C:\MyCompanyNam\MyProgram. ...
    (microsoft.public.vb.general.discussion)