3
votes

I have 2 version of dll (Hello.dll 1.0.0.0 and Hello.dll 2.0.0.0)

At first, the Hello.dll version 1.0.0.0 will be installed into C:\Windows\Assembly folder. Then, when I launch my installer, the Hello.dll version 2.0.0.0 dll will be installed into C:\Windows\Assembly folder also.

So now in assembly there are 2 Hello.dll with different version(1.0.0.0 and 2.0.0.0)

How to remove Hello.dll version 1.0.0.0 from GAC during the installation, then only install Hello.dll version 2.0.0.0, because I just want to keep latest version of Dll in GAC instead of both.

Thanks

1

1 Answers

2
votes

I assume 1.0.0.0 is installed by an earlier wix installer of you. Then it is a matter of letting the new installer remove older installations before installing the new. You can read about upgrades in WiX here and here.