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 to the GAC
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
Sep 18, 2008
09:05 AM
Installing to the GAC
I have an installer that installs file directly to the GAC. It appears to be working but a developer is questioning why the files are not in the applicaiton's BIN folder as well. Before I reply I want to make sure I understand how this works.
If installed to the GAC should a file only exist in the GAC? Should I install the file to both the BIN folder and the GAC?
If installed to the GAC should a file only exist in the GAC? Should I install the file to both the BIN folder and the GAC?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 18, 2008
11:08 AM
If you only added a file to your project in the GAC, it will only be installed to the GAC folder. To install to another folder, you can add the file to the other folder in your project and leave the existing file in the GAC folder.
One thing to note, from my understanding, is the .NET framework will only load one copy of the assembly (see How the Runtime Locates Assemblies).
One thing to note, from my understanding, is the .NET framework will only load one copy of the assembly (see How the Runtime Locates Assemblies).
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)