Application Config File Overwrite Problem .Net 2005

  • Thread starter Thread starter mmitchell
  • Start date Start date
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
 
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.
 
Back
Top