[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

How to best modify WCF configuration in an app config during install

Lothar Behrens

5/26/2011 2:43:00 PM

Hi,

I have written a msi for my project that has been deployed in an alpha
stage. Within that stage I have used host1 as a server I want to
reconfigure using host2. The problem is either a user may have changed
the config (accidantly) or in my case I am using the app config to
store some values once (creating a GUID).

Both cases would break the intent to modify the app.config from source
and redeploy a new version to do the job for a silent deployment in an
enterprise.

Using XmlDocument to load the file would be doable for simple named
value pairs in appSettings, but is there an easier solution to create
correct configuration for a WCF service configuration?

I don't like to create code to fiddle stuff into strings that probably
done better with WCF classes.

Thanks, Lothar