.NET 2.0 assemblies not removed from the GAC for 2 reasons - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

xrkxs
Posts: 13
Joined: Wed Oct 17, 2007 4:33 pm

.NET 2.0 assemblies not removed from the GAC for 2 reasons

Hello!

I run into the issue that .NET2.0 Assemblies installed into the GAC don't get uninstalled when doing an uninstall.

The first reason is that AdvancedInstaller does not as of version 6.0 populate the MSIAssemblyName table with a ProcessorArchitecture property. Hence Fusion has not enough information to remove the assembly in .NET 2.0 and upwards. I can easily work around this by adding the property manually in the Assembly Atributes list in the AI UI.

The second reason why Assemblies don't get uninstalled is that the Version attribute of the assembly is never refreshed after a new assembly version is build and again Fusion has no good information to remove the assembly. I have worked around this issue by updating the assembly version number with XPath tools directly in the AdvancedInstaller .AIP file.

It would be much better if AdvancedInstaller handled both scenarios: For .NET 2.0 populate the processorArchitecture property and have some mechanism to synchronize all the assembly properties agains the actual assembly being added to the .MSM or .MSI at build time. Something like a synchronized folder, but then for the assembly attributes.

I hope you will take this into consideration as it will improve the general useabillity of AdvanceInstaller for .NET projects.

Regards,
xrkxs
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I have added these features on our TODO list and they will be available in a future version of Advanced Installer.
Thank you for your suggestions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xrkxs
Posts: 13
Joined: Wed Oct 17, 2007 4:33 pm

I hope it will be given some priority.
I have searched the forum and there are more threads on the "cannot remove assembly from GAC" issue.

Best regards,
Martein
tekomino
Posts: 9
Joined: Sat Dec 01, 2007 1:45 pm

Cosmin,

Can you please confirm that this will make it into the next build? I see that this has been reported almost year ago, but unfortunately nothing has been done about it.

This is very important issue. I cannot use AdvancedInstaller now in my automated build process because I have to manually update the version under Assembly Properties (using variable [ProductVersion] does not work).

In my opinion this deserves hot-fix as soon as possible.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I cannot guarantee that these features will be included in the next build, however I have increased their priority.
Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”