gac registration

  • Thread starter Thread starter RP
  • Start date Start date
R

RP

Hi all, I am trying to figure out and script the easiest way to register a
dll in the GAC? Does an entry have to be made in the machine.config file for
it register and load correctly? Also are their any APIs to do this?

TIA!
 
If "register" means for COM interop, that's what regasm.exe does, but if you
just want to install it, that's what gacutil.exe does.

VS.NET/2003 has setup and deployment projects for installation (and there a
lots of other tools too) if you want to use an MSI file for the install.
 
Phil, I dont need COM interop. All managed code within the framework. Just
need to install it. Trying to simplify setup on multiple web servers. Also I
dont use VS.Net. Is gacutil.exe a command line utility?

thanks!

Phil Wilson said:
If "register" means for COM interop, that's what regasm.exe does, but if you
just want to install it, that's what gacutil.exe does.

VS.NET/2003 has setup and deployment projects for installation (and there a
lots of other tools too) if you want to use an MSI file for the install.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

RP said:
Hi all, I am trying to figure out and script the easiest way to register a
dll in the GAC? Does an entry have to be made in the machine.config file for
it register and load correctly? Also are their any APIs to do this?

TIA!
 
Yes, it is a command line tool. Check this docs: http://msdn.microsoft.com/library/d...cpgrfGlobalAssemblyCacheUtilityGacutilexe.asp

Regards, Jakob.


RP said:
Phil, I dont need COM interop. All managed code within the framework. Just
need to install it. Trying to simplify setup on multiple web servers. Also I
dont use VS.Net. Is gacutil.exe a command line utility?

thanks!

Phil Wilson said:
If "register" means for COM interop, that's what regasm.exe does, but if you
just want to install it, that's what gacutil.exe does.

VS.NET/2003 has setup and deployment projects for installation (and there a
lots of other tools too) if you want to use an MSI file for the install.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

RP said:
Hi all, I am trying to figure out and script the easiest way to register a
dll in the GAC? Does an entry have to be made in the machine.config file for
it register and load correctly? Also are their any APIs to do this?

TIA!
 
RP said:
Phil, I dont need COM interop. All managed code within the framework. Just
need to install it. Trying to simplify setup on multiple web servers. Also I
dont use VS.Net. Is gacutil.exe a command line utility?

However, gacutil.exe is not included with the runtime - it's distributed
with the SDK. It's not a redistributable component. You might not be
able to depend on your customer machines having it.


If "register" means for COM interop, that's what regasm.exe does, but if
you

just want to install it, that's what gacutil.exe does.

VS.NET/2003 has setup and deployment projects for installation (and there
a

lots of other tools too) if you want to use an MSI file for the install.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer

http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

Hi all, I am trying to figure out and script the easiest way to register
a
dll in the GAC? Does an entry have to be made in the machine.config file
for

it register and load correctly? Also are their any APIs to do this?

TIA!
 
Back
Top