By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

Application Config File Overwrite Problem .Net 2005

P: n/a
I have a VB.Net 2005 solution that uses an installer project to
install.

When I do an install I would like the app.config/application config
file to be installed only when there isn't one already on the users
workstation. I don't want to overwrite the settings every time I
update the application.

I removed the app.config, created a config with the application name
and then added file to the install project and marked the condition to:
Not Installed, but it insists on overwriting the local version.

Any idea on how to get around this?

Thanks
Mike

Mar 29 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I found the solution myself.

I did the following:
I set the condition to: NOT INSTALLSTATE_ABSENT
I also set the permanent property to True.
This keeps the file from being deleted on a new install. The config
file is copied over only when it is missing.

Mar 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.