Update configuration file during installation with Windows Installer

R

Roeland Kok

Hello,

I'm making a setup project for a Windows Installer, to update my
application.

The application has a configuration file (app.config) that is renamed
after the build. I would like to not replace this file by the new
configuration file during an installation, but keep it both (the new
and old one). In that way I am able to tell the user to merge both
files, or do it by myself as a Custom action.

However, how can I manage this? During an installation the old one is
replaced by the new one default. And the Custom Action 'Install' is
just called after the installation took place. So, I am not able to
rename the old config file or something like that.

Any ideas?

Greetings,
Roeland
 
C

Cor Ligthert

Roeland,

That is exactly why I have usersettings in the registry and program settings
in the config.

How you will add new config settings, doing that what you want, when you
have a new release.

However maybe there comes a very good answer as well for me.

Cor
 

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