GAC de-registering on Major Upgrade - 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!

benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

GAC de-registering on Major Upgrade

Hiya,

On an initial install, I register a .NET assembly in the GAC.

On a subsequent "major upgrade", this gets de-registered for no reason. I cannot find this listed as a component, so I can't even prevent the uninstallation of it!

I am using version 6.2.

Thanks for any help,
Ben
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: GAC de-registering on Major Upgrade

Hi Ben,

A major upgrade uninstalls the old version before installing the new one. Since the uninstall process automatically unregisters the assemblies, the upgrade will also unregister them. Please note that the new version of the package should register the assembly it contains (instead of the old one).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Re: GAC de-registering on Major Upgrade

Agreed. However, this re-registering seemingly never took place. I looked in the GAC to no avail. What kind of things should I be looking for?

Thanks again,
Ben
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: GAC de-registering on Major Upgrade

Hi Ben,

If the assembly in the new package has the same version as the assembly in the old one, Windows Installer may not install it again (this is a known bug). In this case, you can use the "Ensure that this file overwrites any installed target file" option in the Version tab of the "Edit File" dialog. This way the assembly in the new package will be installed and registered into the GAC.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Re: GAC de-registering on Major Upgrade

Ok thats good to know.

Thanks a lot.

Return to “Common Problems”