title: Where are my application settings stored exactly?
body: <p>With a Windows Forms (or WPF) application, if I create an installer through <code>Publish</code> command (ClickOnce that is),  the installer creates application folder with executable and config file in <code>C:\Users\[UserName]\AppData\</code>. On the other hand, if the installer is created through Setup project (MSI), the installed app would be in <code>C:\Program Files\My Company\My App</code> with both the executable and the config file. Out of the two, I chose MSI path.</p>
  
  <p>My expectation was that the application settings (as in Project properties > Settings tab) are read from/written to the config file that is in <code>Program Files</code>, which remains there even if I uninstall the program or upgrade it with a newer version, so that user's settings don't get lost. But it doesn't appear to be the case. Even that the Program Files version of the config file is there, the installed application appears to be reading from/writing to <code>C:\Users\[UserName]\AppData\</code> as if it were a ClickOnce app. What am I missing?</p>
  
  <p>(This is VS2010 + Win7 + C# + .NET 4.0 Client Profile, though I don't think those things have anything to do).</p>