Re: [WiX-users] Preservation of .net settings?

2008-06-18 Thread Ryan Dunn
Thanks for the quick reply.  This does exactly what I wanted.  After testing it 
out, I have another question. After the upgrade, the old settings file is still 
there. How do I remove the folder and the settings file for the last version? 
Also, is it possible to remove the settings folder in the user's $APPDATA% 
folder on an uninstall, but not when doing an upgrade?
 
Thanks,
Ryan



 Date: Wed, 18 Jun 2008 12:39:54 +1000 From: [EMAIL PROTECTED] To: 
 wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Preservation of 
 .net settings?  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]
 ourceforge.net [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
_
Need to know now? Get instant answers with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008
-
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


[WiX-users] Preservation of .net settings?

2008-06-17 Thread Ryan Dunn

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


Re: [WiX-users] Preservation of .net settings?

2008-06-17 Thread King, Ross
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