I have some application settings (like database configuration etc.) stored in
app.config file.
As it is a standard .Net approach i haven't expected any troubles with this
and installer. I would like to make the newest version of the program
available to the users via wix installer,  but I couldn't find a simple way
of updating the .config file without trashing the old settings values.
The perfect solution for me would be a way to merge somehow the old file
with the new one.

I am thinking about several possible approaches (don't know if all are
possible)

1. Compare and merge old and new .config files using Custom Action 
A problem with this one is I can't get to access the new file (the one
that's gona be installed)

2. Backup old file using Custom Action and merge the backup with the freshly
installed version using another (deferred) Custom Action

3. Instead of copying the .config file from source move creating it to the
wix (using XmlConfig or XmlFile tag)
Don't know how to write conditional set/create values - is it possible?

4. There is some other obvious way, which I can not see maybe? 


So in Your opinion what is the best approach for updating the .config file
during the update/upgrade?
Would moving some values from app.config to registry be better?
-- 
View this message in context: 
http://n2.nabble.com/Updating-app.config-tp1077780p1077780.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to