This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Installing assemblies to [GlobalAssemblyCache] AND [InstallDir]
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2015
08:46 AM
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.
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.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 06, 2015
06:58 AM
Did you look at the DuplicateFile table here
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 07, 2015
08:20 AM
I tried using the DuplicateFile table, but it does not seem to be working. When I try copying it from GlobalAssemblyCache to INSTALLDIR, the file cannot be found. When I try it the other way around, the file won't be copied to the GAC.
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...
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...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 08, 2015
01:22 AM
Apologies, I didn't know about the private vs global concept which is a limitation in using DuplicateFiles table.
Thanks for pointing at the article by Aaron Stebner.
Thanks for pointing at the article by Aaron Stebner.