I'm creating a WIX installer for a C# application. In the application I use System.Configuration.ConfigurationManager.AppSettings[Setting1] to get settings.
My question is, where must I place the program.exe.config file on the machine in order for it to work? I can't place it with the program in ProgramFiles directory, since those files are read-only.
I tried: Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal); config.AppSettings.Settings[Config1].Value = "Value1"; config.Save();
Unfortunately I don't know where it's looking.
Thanks your replies, Trevy