.Net 4 assemblies not uninstalling from GAC

Got a problem you cannot solve? Try here.
Post Reply
gsRon
Posts: 26
Joined: Sun Sep 14, 2008 10:21 pm

.Net 4 assemblies not uninstalling from GAC

Post by gsRon »

I am having issues with .Net 4 assemblies not uninstalling when the assembly is installed to the GAC.

I am using IA9r2. With .Net 4, assemblies installed to the GAC are in C:\Windows\Microsoft.NET\assembly\GAC_MSIL and not C:\Windows\Assembly as previously.

Attached is an example SLN and IA project that uses an assembly that gets installed in the GAC. If you build the project, then the installer, then run the installer. After installing, uninstall and the assembly 'HelloWorldLibrary' is left in the C:\Windows\Microsoft.NET\assembly\GAC_MSIL directory.

Have I missed some thing or do I have to manually clean assemblies from the GAC?

Ron
Attachments
HelloWorld.zip
(687.42 KiB) Downloaded 432 times
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: .Net 4 assemblies not uninstalling from GAC

Post by mills »

After running Apply Uninstall, you can call "Remove [unpinned] Assemblies"
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
gsRon
Posts: 26
Joined: Sun Sep 14, 2008 10:21 pm

Re: .Net 4 assemblies not uninstalling from GAC

Post by gsRon »

We do the 'Remove Unpinned Assemblies' in our real installer. It was left out of the original code I attached, but I have added it to the example and it still leaves assemblies in the GAC.

I have been testing with Win7 and Server2008.
Attachments
HelloWorld.100730.zip
(687.31 KiB) Downloaded 435 times
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: .Net 4 assemblies not uninstalling from GAC

Post by mills »

I looked into this and it appears that you're testing on the two OS that this is failing on; others, through Vista appear to work properly. Thanks for bringing this to our attention; we're looking into the cause.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
gsRon
Posts: 26
Joined: Sun Sep 14, 2008 10:21 pm

Re: .Net 4 assemblies not uninstalling from GAC

Post by gsRon »

do you have an ETA for when this might be fixed?
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: .Net 4 assemblies not uninstalling from GAC

Post by mills »

I can't say for sure, but this should be fixed in the next release of InstallAware.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply