I have a WPF application that should run for all users of the machine with the same settings. Settings must be read / written. I previously saved user configuration settings in CommonApplicationData, e.g.
var settingsFile = Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.CommonApplicationData),
"[company]", "[product]", "settings.xml");
However, this morning I read what is CommonApplicationDataused for roaming profiles, which means that they are not specific machines. From what I can find, we have the following parameters for the application data ( source ):
System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
To summarize the parameters
- Single user roaming
- All users roaming
- Single user, not roaming
, . , , ?
?