rad
rad

Reputation: 1937

Clickonce update without overwriting config

I want deploy many client (WPF) with Clickonce, i would not overwriting configuration file when i update client. It is possible ?

not include the file for update ? or make a differential update ? In fact I do not want to crush the connectionString in the updated with ClickOnce.

Upvotes: 4

Views: 959

Answers (1)

mersadk
mersadk

Reputation: 337

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

More about that: http://msdn.microsoft.com/en-us/library/8eyb2ct1.aspx

Upvotes: 1

Related Questions