R – Web Setup Project – Repair to overwrite files

asp.netrepairweb-setup-projectwindows-installer

I have a web setup project that creates an MSI. After first installation, my web site has some config files that can be modify manually.

When triggering that MSI again, I am offered to repair the installation, when I select to do so, the installation runs, but the config files that were modified previously are no replaced with default config files contained in the MSI.

I am looking for a way to overwrite those files when a repair is done.

EDIT: The setup project is built using a Visual Studio Web Setup project.

Thanks.

Best Answer

Try setting the default config files each as the Key file in their own component.