Application Config File Overwrite Problem .Net 2005

M

mmitchell

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
 
M

mmitchell

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.
 

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