We have a .NET based application that is configured through a .config file. How can we merge changes a user has made into the new .config file provided as part of an upgrade?
The actual merging of the files can be done with an XSLT transform but I don't know how to access the "old" .config file.
Any help?
Thanks
Mike
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
How to merge user .config changes after an upgrade
Started by
mikebk
, Apr 28 2004 21:47
1 reply to this topic
Posted 29 April 2004 - 01:10
I would APPSEARCH the .config file first and then
1. (If it's not in the Key path of the previous install,WHICH is not GOOD Practice though)
Rename the old file and do what ever changes required to be changed....after the InstallFiles action of the Current Upgrade.
2.If the file is in the Key-Path then Read the file contents into a temp file as using a CA before the CostInitialize...which can be used to Merge after the InstallFiles of the current Upgrade.
I can't think of any easy way...in such a short time.
Thanks,
L
1. (If it's not in the Key path of the previous install,WHICH is not GOOD Practice though)
Rename the old file and do what ever changes required to be changed....after the InstallFiles action of the Current Upgrade.
2.If the file is in the Key-Path then Read the file contents into a temp file as using a CA before the CostInitialize...which can be used to Merge after the InstallFiles of the current Upgrade.
I can't think of any easy way...in such a short time.
Thanks,
L