Re: Installing to GAC using Deployment Project
- From: "Sebastian Wain" <sebastian.wain@xxxxxxxxx>
- Date: 14 Nov 2005 11:21:28 -0800
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.
.
- Follow-Ups:
- Re: Installing to GAC using Deployment Project
- From: Tim Marsden
- Re: Installing to GAC using Deployment Project
- References:
- Re: Installing to GAC using Deployment Project
- From: Phil Wilson
- Re: Installing to GAC using Deployment Project
- From: Tim Marsden
- Re: Installing to GAC using Deployment Project
- Prev by Date: Re: How get info from msi file?
- Next by Date: Re: Getting started VB6 to .Net
- Previous by thread: Re: Installing to GAC using Deployment Project
- Next by thread: Re: Installing to GAC using Deployment Project
- Index(es):
Relevant Pages
|