Hi Bogdan,
Thank you for the interesting link. I opened the compiled MSI in Orca and examined the tables mentioned in the article. The record in the File table for the Advantage.Application.dll file had the expected value for the Version field of "1.9.0.0" (
screenshot). The Version record in the MsiAssemblyName table for the Advantage.Application.dll assembly had an incorrect value of "0.0.0.0" (
screenshot).
I edited the Version record in the MsiAssemblyName table to set the Value field to "1.9.0.0" and tried installing and then uninstalling the product; the assembly was removed from the GAC.
I revisited the assembly attributes that Mihai referred to previously to double check that I have configured the Version attribute correctly. As I explained before I have it set to "0.0.0.0" but have enabled the "Synchronize value with the assembly file" option (
screenshot). This is a pattern I have successfully used before - the synchronize option means I don't have to remember to update it, and the 0.0.0.0 is a visual clue to myself that I don't have to.
In this project this does not seem to be working; whatever value is typed in is written to the MSI, the correct value is not obtained from the assembly.
I have installed the trial version of Advanced Installer 8.5 on a colleagues machine and reproduced this behaviour. I then updated this installation to the current version (8.6) and again reproduced the behaviour.
In case it is significant, the previous installers I have created using this option were to deploy assemblies targeting .NET Framework 3.5, this is the first time I have used Advanced Installer to deploy an assembly targeting .NET Framework 4.
FOLLOW US
Get the latest news in Application Packaging