At first glance this seems like a purely subjective/aesthetic issue, but I'd be interested to hear opinions (especially any technical ones) on whether environment variables or the registry is the preferred place for storing configuration data in a Windows environment.
I can currently only think of the following differences:
- Registry settings are persistent across sessions, though I believe that environment variables can also have this property.
- It's easier to set environment variables from the command-line vs. using
regedit
- (Counter-argument:
regedit
easier for non-command-line apps?)
- (Counter-argument:
- Environment variables are more common across platforms (?).
I'm also aware that environment variables can be interrogated, modified and set from the registry.