How do I configure my app install package to not overwrite the existing config in VS2010?

jxbma
jxbma used Ask the Experts™
on
Hi:

I've got an winform application built using VS2010.
I've created a deployment project to generate a setup/installer.

Currently, when running the generated "setup.exe", the application's config file get's overwritten.
For now, I'd be happy making a backup copy of the config (if it exists) before copying in the new config.

I'm relatively new to the world of "installer."
What's the best way to do this?

Thanks,
JohnB
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
you can use Custom Action  for your needs
public override void Install

see sample and write your code
Walkthrough: Using a Custom Action to Display a Message at Installation
http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial