Control not being uninstalled from the GAC - 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!

alanseedhouse
Posts: 5
Joined: Wed Jul 11, 2007 9:58 am

Control not being uninstalled from the GAC

Hi..my installer is now working OK. I have a DotNet assembly that gets installed into the GAC. When I perform an uninstall of the app the control does not get uninstalled from the GAC. Should this be automatic or do I have to add a custom action?

As a side note...when you install an assembly into the GAC it does not place it in the application folder as well. A copy of the control is also needed here. When adding a control in Visual Studio 2005 you have to point to an assembly in a standard windows folder (not the GAC). I have had to mess around with temp folders and file operations to work around this issue. Perhaps its something you should include in the settings.
alanseedhouse
Posts: 5
Joined: Wed Jul 11, 2007 9:58 am

Fixed, I hope...

I have just found another post with the same problem. You appear to have to add the ProcessorArchitecture attribute to a Net 2.0 assembly so I will try that first.

Regarding strongly named assemblies to be installed in the GAC, you DO need two copies of the assembly...one in the GAC and the other in a standard windows folder. You cannot add a second copy of the assembly dll to the Files and Folders option as it says the file is already there. What I had to do as a work around is as follows:

1. Add the dll to be installed into the GAC to the application folder.
2. Add a scond copy of the dll as a temporary file.
3. Set the proerties of the temp dll "Not to be removed when setup ends"

Although this appears to work it would be good if the installer had a setting to do this automatically.
alanseedhouse
Posts: 5
Joined: Wed Jul 11, 2007 9:58 am

Fixed GAC problem

Adding the ProcessorArchitecture attribute with a value of MSIL works. The assembly now gets uninstalled when the app is uninstalled :-)

Return to “Common Problems”