Re: Installing to GAC using Deployment Project



Hi Tim,

If you need to mimic the process of 'gacutil' and/or 'regasm' because
they may be not in the target machine, you can use:


[C#]
using System.EnterpriseServices.Internal;
....
Publish p = new Publish();
// for GAC Installation
p.GacInstall(file); // for gac installation
....
p.GacRemove(file); // for gac removing
....
p.RegisterAssembly(file); // for registering assembly for interop
....
p.UnRegisterAssembly(file); // to unregister assembly
[/C#]


Regards,
Sebastian Wain
--
http://www.nektra.com

Tim Marsden wrote:
> Phil,
> Many thanks for the swift reply.
>
> When I use the GACUTIL, then find the entry in he GAC, right click and
> look at properties, the is an entry for Codebase, which references the
> location of the dll I installed using the GACUTIL.
>
> If I check the GAC after I use the installer there is no entry for the
> codebase on the dll's properties.
>
> Do I need to do anything special because it is a interop dll?
>
> Regards
> Tim
>
>
> On Mon, 14 Nov 2005 07:28:22 -0800, "Phil Wilson"
> <pdjwilson@xxxxxxxxxxxxxx> wrote:
>
> >You're doing the right thing, but where is this codebase value you are
> >referring too? Codebase is usually referred to in the context of Regasm.exe
> >or a config file. Gacutil just puts assemblies in the GAC, like the
> >deployment project does.

.



Relevant Pages

  • Re: Installing to GAC using Deployment Project
    ... look at properties, the is an entry for Codebase, which references the ... location of the dll I installed using the GACUTIL. ... If I check the GAC after I use the installer there is no entry for the ... codebase on the dll's properties. ...
    (microsoft.public.dotnet.general)
  • Re: Installing to GAC using Deployment Project
    ... Codebase is usually referred to in the context of Regasm.exe ... Gacutil just puts assemblies in the GAC, ... Definitive Guide to Windows Installer ... > However I need this dll to be installed in the GAC. ...
    (microsoft.public.dotnet.general)
  • Re: GAC Information
    ... Try to right click "System.Messaging 1.0.5000.0" and the codebase should be ... or try to use GACUTIL to gac one of your own strong named dll and then right ... the assembly path and that path will be shown as codebase. ...
    (microsoft.public.dotnet.languages.csharp)
  • Adding GACUtil on right click menu
    ... I've quite some files to push into GAC ... Opend registry ... Set default value for command to path of gacutil followed by /i "%1" ... click of dll files; clicking that will send dll to GAC ...
    (microsoft.public.biztalk.general)
  • Re: Search and indexing error
    ... No old stssoap.dll in the GAC - "gacutil /u stssoap" ... Disable proxy or, if using, make sure the bypass list doesn't include ...
    (microsoft.public.sharepoint.portalserver)