473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Clarifying question about the GAC

UJ
I've got a program that runs on a machine that will automatically update
things like the DLLs that a group of programs use. I'm looking at using the
GAC because it's getting to the point that I have about 12-15 DLLs that all
the programs use. This all has to be silently in the background from the
user. I understand I can use the command line program to install the DLLs
into the GAC. But what happens to old versions of the assembly? Are they
still there? I assume this means that I need to make sure that all the
correct assemblies have been installed before the programs attempt to access
them. What happens to the old versions? Are they still out there?

So in theory what I would need to do it:

Install the new assemblies I need.
Then install new versions of the programs that use the assemblies.
This could end up with many assemblies with the same signature but different
versions. Is there a way to check on the old versions and get rid of them? I
notice that the uninstall just takes the assembly name. How does it know
which one to uninstall or does it uninstall them all?

If you are uninstalling the assembly while a program is using it what
happens? And if you are starting the program and the assembly has been
removed what happens?

TIA - Jeff.
Mar 14 '06 #1
1 1194
But what happens to old versions of the assembly? Are they
still there?
Yes

Install the new assemblies I need.
Then install new versions of the programs that use the assemblies.
If the new versions are compatible with the old, you can use publisher
policy to make the applications use the new versions without having to
update the apps.

I notice that the uninstall just takes the assembly name. How does it know
which one to uninstall or does it uninstall them all?
A full assembly name includes the version number.

If you are uninstalling the assembly while a program is using it what
happens?
I don't know but it should be easy enough to test.

And if you are starting the program and the assembly has been
removed what happens?


If no configuration has been made to enable another version to be
used, the program will fail when it tries to load the assembly.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Mar 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
8
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
5
by: eScrewDotCom | last post by:
www.eScrew.com eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is...
2
by: smith flyers | last post by:
static void Main(string what) { string test="testing 1 2 3"; test.Replace("testing", "test"); } // why this doesn't replace the word "testing" ? when using "try" can i use multiple "block...
10
by: brooksr | last post by:
I know VB5/VBA very well but have not used VB to create web pages but need to do so. Can someone explain the purposes and differences between VBScript and VB.NET to create web pages? Also...
5
hyperpau
by: hyperpau | last post by:
I just have some stupid questions but really want to know to fully understand vba more. What are the arguments for in some of the events? For example, the click event has the arguments...
13
by: poolboi | last post by:
hi guys, just wanted to find out something about cpan modules 'cos i'm still not sure what they are all about right...hm..first of all i did something like typing ppm on the command prompt ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.