Clickonce update without rewriting the configuration

I want to deploy many clients (WPF) using Clickonce, I would not overwrite the configuration file when updating the client. Is it possible?

not include file for update? or do differential update? Actually, I don't want to crush the connectionString in the updated one using ClickOnce.

+4
source share
1 answer

Use the Settings.settings file (go to project properties -> settings) instead of App.config. For ClickOnce settings, Settings.settings will be stored in "% InstallRoot% \ Documents and Settings \ username \ Local Settings" and will not be overwritten with each new update.

More on this: http://msdn.microsoft.com/en-us/library/8eyb2ct1.aspx

+1
source

All Articles