Groups | Blog | Home
all groups > dotnet ado.net > april 2007 >

dotnet ado.net : Persistent settings



John
4/28/2007 2:13:24 PM
Hi

I need to store the path to db in my app. I have used app setting for this.
Unfortunately various clients have different db paths and I have set them up
once on each client location. The problem is that when I send them updates
and they uninstall the old version and reinstall the new version the setting
is reset to my settings. This is because the old configuration file is
deleted and replaced by the new one included in the app. Is there a way to
have a setting that is not overwritten by an application reinstall?

Thanks

Regards


Tom Garth
4/28/2007 2:40:02 PM
John,

See SaveSetting and GetSetting. It's extremely easy to use and saves values
to the HKEY_CurrentUser area of the registry. Uninstalling or reinstalling an
application does not remove the information.

--
Tom Garth


[quoted text, click to view]
Mr. Arnold
4/28/2007 6:05:25 PM

[quoted text, click to view]

Whatever install package you're using doesn't it have an exclude file
feature?
Simply, exclude the configuration file in the install setup so that it
doesn't overlay the existing one on the machine during the install.
AddThis Social Bookmark Button