Install new version of c# windows app with old setting (without overwritting exe.config)

In my c# windows application, I want to Exclude MyApp.Exe.Config from my Setup Package as I don't want it to get overwritten during upgrade installation of my application.

If I remove app.config while building the setup, it removes existing app.config on the target machines and if included, it overwrites the existing ones.

I also tried using the ExcludeFilter property on the Project Output group but when I exclude *.config, It removes the config file of previous installation.

So, somebody please suggest some ideas so that I do not need to reset my previous settings in new installation.

Thanks

Answers


Need Your Help

Execute a Function before a Timer start

c# date datetime timer

I am a bit new Here .I have window service in which I have a timer which executes a function after 1 Min interval..I want to Execute function first time before Timer start and then after each Timer

Passing datatable from C# to SQL Server 2008

c# sql sql-server-2008 c#-4.0

How can I pass a DataTable from C# to SQL Server 2008?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.