
sebastian.zimmer1.5524902597824043E12 asked a question.
Installing assemblies to [GlobalAssemblyCache] AND [InstallDir]
Is there a way to install assemblies not only to the program folder (INSTALLDIR), but additionally also into the Global Assembly Cache? A trivial way to do this would be to add every file to two components and set the "Destination" property accordingly, but it seems that doing so would physically add the same file to the setup file twice, which leads to an increased size of the setup file. Is there any other way to achieve this?
A little background information: we are using two libraries, each of which consists of several dozen assemblies that add up to > 100 MB. We would like to install those assemblies to the GAC, but we know that some of our customers install our software to a net drive and access it from an arbitrary number of PCs (without running the setup there), so the assemblies also need to be placed in the installation directory.
I've found one or two articles that mention the same problem (e.g. this article : "Unfortunately, the DuplicateFile table does not support installing an assembly as both a global and a private assembly"). Seems like I would have to use a custom action or something like that...
Thanks for pointing at the article by Aaron Stebner.