The Settings class has an Upgrade method that grabs the previous settings. Make sure you add your own setting SettingsUpdateRequired that is defaultly set to true, otherwise this will overwrite your settings each time you start your program.
static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Get the settings from a previous version if we can if (Properties.Settings.Default.SettingsUpdateRequired) { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.SettingsUpdateRequired = false; } Application.Run(new MainForm()); } } Regards, Ross. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Dunn Sent: Wednesday, 18 June 2008 11:35 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Preservation of .net settings? I have a WiX project used to install a .net app. The app makes use of the Properties of .net to store settings. These settings go in %APPDATA%\Path\to\dir\version\user.config After I rev the version (either through a small patch, minor upgrade, major upgrade), how do I pull in these settings to be used by the new app? I'm not sure if this should be handled by the installer or my program. Within the .net app, I only access these settings through the "Properties.*" namespace, not by the path, so I'm unsure how to handle this issue. Thanks, Ryan _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users