Best practice configuration management
Hi!
I am currently developing an application which should be portable or non-portable (like many apps here).
I am now thinking about a best practice for "configuration management", e.g. how the app handles its configuration on startup.
Since I read the "what is a portable app" link and I don't want to mess up with windows annoyances like registry etc., my approach is currently the following:
* read the configuration file xyz.cfg in the program's directory.
* if it is not found, try to read config file from user's %APPDATA% or %LOCALAPPDATA% and act according to it.
- Read more about Best practice configuration management
- 2 comments
- Log in or register to post comments