Hi,
The situation described was reproduced with advanced installer 12.8 downloaded today, and appears to have the same behavior as version 9.7.
We have build a very simple installer with 2 DLL's to be registered in the system.
Auto register file, Register .Net assembly for COM interoperability, Syncronisation : Buildtime.
In Assemblies, the 2 dll's are installed in Global Assembly cache, and attributes are all Sync, and Version value is synchronized with file assembly.
The Setup is packed with files next to it.
Lets says we build the setup with DLL's version 2015.1.1.1. The installation process successfully registers the files and assemblies. Uninstallation process is able to uninstall everything properly.
Lets say we change the DLL's version to 2016.1.1.1. We don't rebuild the installation logic, we use the same MSI, we just replace the files next to it. The installation process successfully registers the files and version 2016.1.1.1
At the un-installation process, the files are not removed from the GAC listing. They still shows as 2016.1.1.1.
If we do rebuild the setup, the files will be properly uninstalled. But then, If we provide version 2015.1.1.1 with it, it will install it, but not uninstall it.
I suspect the installation process properly reads the file version from the supplied file, but the uninstall process uses the version that was defined at build time in the MSI.
Is this supported? Would it be a bug, or we should look to dynamically register / de-register the DLL in the GAC? We would prefer not to have to rebuild the setup each time as the product and version may slightly change for each customer.
Thanks!!
FOLLOW US
Get the latest news in Application Packaging