Visual Studio Setup Installer is not updating Old Config file during installer overwriting
I have created an installer setup through visual studio. Our solution has XML file which saves user settings related tools. The previous version is installed and old XML files are present. We did versioning for XML files so that new files get installed using installer overwriting. This works successfully.
We want to retain/copy old config file settings. How to achieve this.
One way we tried is to write down code in the Install function, but the previous installed version's Install function is getting called not the new exe's Install function. Below are functions we tried from Installer.cs class.
public override void Install(IDictionary stateSaver)
protected override void OnAfterInstall(IDictionary stateSaver)
protected override void OnBeforeInstall(IDictionary savedState)