473,386 Members | 1,694 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,386 software developers and data experts.

How to install a global assembly (Client's PC)

I have installed an assembly into the GAC on my local PC using gacutil.
How can I now install this on my client's PC without getting them to use
this tool.
The dll should be added to the GAC and be copied to a sub directory here
(confirm this is the case):

C:\WINNT\assembly

or should it get installed in another directory, for example:

C:\Program Files\My Product\bin

It is my understanding that after installed to the GAC, the GAC has it's
own copy of the assembly?

I tried using a Setup package, but this merely installed a dll to a
directory like the one above and I am not too sure thats the correct end
result.

Thanks in advance for the help.

*** Sent via Developersdex http://www.developersdex.com ***
Feb 19 '07 #1
7 1782
Copy the assembly in C:\WINNT\assembly
Steven Blair wrote:
I have installed an assembly into the GAC on my local PC using gacutil.
How can I now install this on my client's PC without getting them to use
this tool.
The dll should be added to the GAC and be copied to a sub directory here
(confirm this is the case):

C:\WINNT\assembly

or should it get installed in another directory, for example:

C:\Program Files\My Product\bin

It is my understanding that after installed to the GAC, the GAC has it's
own copy of the assembly?

I tried using a Setup package, but this merely installed a dll to a
directory like the one above and I am not too sure thats the correct end
result.

Thanks in advance for the help.

*** Sent via Developersdex http://www.developersdex.com ***
Feb 19 '07 #2
So simply copying the dll to this folder adds it to the GAC?
After this, the dll would then be available to the client?

When the client wishes to use the dll, they must add a refence. Where
would the dll be located? (WINNT\assembly does not hold the dll's?)

Can this be achieved using an installtion package?
*** Sent via Developersdex http://www.developersdex.com ***
Feb 19 '07 #3
Hello Steven,

SBSo simply copying the dll to this folder adds it to the GAC? After
SBthis, the dll would then be available to the client?

Yep, but only via explorer, coz in has the specific extetion knowing how
to install (read as silent gacutil)

SBWhen the client wishes to use the dll, they must add a refence.
SBWhere would the dll be located? (WINNT\assembly does not hold the
SBdll's?)

it will be at GAC.
WINNT\assembly DOES hold them

SBCan this be achieved using an installtion package?
yep, just use gacutil

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 19 '07 #4
Michael,

Thanks for the help. I dragged my dll in and it adds it.
However, where does my client browse to when they want to adda reference
to this dll?
I tried browsing to the assembly folder but there doesn't appear to be
anything there selectable.
Do I have to have a copy of the dll somewhere on the disk that the
client must reference to or can I add a refence via the assembly folder
(if so, how?)

Thanks again.

Steven


*** Sent via Developersdex http://www.developersdex.com ***
Feb 20 '07 #5
Hello Steven,

Read this http://support.microsoft.com/?kbid=306149

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
SBMichael,
SB>
SBThanks for the help. I dragged my dll in and it adds it.
SBHowever, where does my client browse to when they want to adda
SBreference
SBto this dll?
SBI tried browsing to the assembly folder but there doesn't appear to
SBbe
SBanything there selectable.
SBDo I have to have a copy of the dll somewhere on the disk that the
SBclient must reference to or can I add a refence via the assembly
SBfolder
SB(if so, how?)
SBThanks again.
SB>
SBSteven
SB>
SB*** Sent via Developersdex http://www.developersdex.com ***
SB>
Feb 20 '07 #6
Michael,

Registry worked, but still one thing I am not sure about.
When I add a reference to my dll, it is still located at the folder I
copied the dll (C:\Program Files\Company Name).
I was under the impression I would not need to copy the dll to a
location on the local PC after I installed to the GAC.

Does this mean if I have 5 GAC dll's that I need to first add them to
the GAC and have them available in a standard folder so the client can
add a reference, and if so, what would happen when I wanted to add a
newer version of one of the dll's to the client (I would drop into GAC,
but would I have to make another folder for this updated dll since the
older dll might still be used!)

Thanks for your continued help.

Steven

*** Sent via Developersdex http://www.developersdex.com ***
Feb 20 '07 #7
Hello Steven,

SBworked, but still one thing I am not sure about.
SBWhen I add a reference to my dll, it is still located at the folder
SBI
SBcopied the dll (C:\Program Files\Company Name).

yep, there is nothing wrong that they will locate there. the only requirement
that you app will reference to the GAC version
BTW, what are the need to keep you dll there?! Put them only to GAC during
install

SBI was under the impression I would not need to copy the dll to a
SBlocation on the local PC after I installed to the GAC.

Yes

SBDoes this mean if I have 5 GAC dll's that I need to first add them
SBto the GAC

yes

SBand have them available in a standard folder so the

nada

SBclient can add a reference,

only to GAC versions, if u wanna have your asm in gac

SBand if so, what would happen when I
SBwanted to add a newer version of one of the dll's to the client (I
SBwould drop into GAC,

yes

SBbut would I have to make another folder for
SBthis updated dll since the older dll might still be used!)

nope. if u put asms into GAC during install there is no reason to keed your
dlls somewhere else

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 21 '07 #8

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

Similar topics

4
by: Bob | last post by:
Could anyone suggest me some examples/articles on creating a setup program in VS.NET that can install the assembly into the GAC? I have done some search and research myself and have some basic...
1
by: Andy Butland | last post by:
I've built a dll component that is compiled from contains a number of generic classes, each in separate .vb files, that I'd like to use in several web applications. Currently I'm simply placing a...
1
by: Ray | last post by:
Dear all, Now, I am using Global Assembly Cache to share assembly between server and clients. However, it seems that the server and clients use individual Global Assembly Cache. For example, the...
1
by: moondaddy | last post by:
I have a VS 2005 winforms project and am trying to get clickonce deployment working correctly. I published the deployment to a test server on my network. It created the publish.htm and from my...
2
by: Vayse | last post by:
I published my app in Visual Studio 2005. I'm getting a problem installing on one PC. During the install, the following error appears: "Unable to run or install the application. The application...
0
by: princessjewel62 | last post by:
Hi all, How do I install an assembly in the Global Assembly Cache in Visual Basic .NET or in Visual Web Developer 2005? The instruction is to install the obj.dll into the Global Assembly Cache...
2
by: Dean Slindee | last post by:
Getting the following message when doing a ClickOnce install at a deployment PC: "Unable to install or run the application. The application requires that assembly Microsoft.Office.Interop.Access...
11
by: Sylvia A. | last post by:
How can I define global classes in web application ? Classes can be set to session variables ? Thanks
1
by: Sergiu Ignat | last post by:
Hello, I try to deploy an application through ClickOnce. I use .NET Framework 3.5SP1. In Publish/Prerequisites I require the entire framework (not only the client profile) and checked "Download...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.