question

KetakiNanaware-2555 avatar image
0 Votes"
KetakiNanaware-2555 asked PengGe-MSFT edited

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)

dotnet-visual-basicvs-setup
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @KetakiNanaware-2555
Perhaps you can ask this question on the Q&A page of this extension for better help.


1 Vote 1 ·

0 Answers