Prevent overwrite of app.config

M

Michael White

In my app.config file there are various user settings for printers, etc that
the user may customize. When I publish an update using Click-once and the
app installs the latest version to the user's computer, the config file is
overwritten and the user's modified settings are gone. How do I prevent this
behavior?

Thanks
Michael
 
G

Gabriel Lozano-Morán

You can prevent this different ways:

1) custom action that will merge the new app.config with the old uers
app.config if one exists
2) externalize the user settings (seperate config)

Personally i would consider externalizing the settings for printers and
others if these are user specific.

Gabriel Lozano-Morán
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top