Re: Installing to GAC using Deployment Project



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.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Tim Marsden" <TMQSL@xxxxxxxxxxxxxxxx> wrote in message
news:8EAB7285-3BD8-4A92-BA9B-649943B70A17@xxxxxxxxxxxxxxxx
> Hi,
>
> I have written an App in vb.Net (2003) which references Excel 2000. This
> creates a Interop_Excel.dll which I need to reference in my project. All
> OK
> so far.
> I had to modify the Interop_Excel.dll and renamed it tm_Interop_Excel.dll
> after modification. This new dll has a strong name and all the correct
> attributes.
>
> If I create a deployment project for my app, the tm_Interop_excel.dll is
> placed in my application folder.
>
> However I need this dll to be installed in the GAC. I can do this manullay
> using GACUTIL, and all is OK.
>
> When I create an installer, using VS 2003, I drag the dll form my
> application folder into the Global assembly folder. (file system on target
> machine).
>
> When the installer is run, the tm_Interop_Excel.dll is placed into the GAC
> but without a codebase entry and my app does not work. If I then run the
> GACUTIL -i the codebase entry is added and all is ok.
>
> I have found the GACUTIL is missing on some target computers so I cannot
> relie on it being there.
>
> So my question is, How do I create an installer which will automatically
> place my tm_Interop_Excel.dll into the GAC correctly without using the
> GACUTIL.exe.
>
> Thanks in advance
> --
> Tim Marsden


.



Relevant Pages

  • Re: Installing to GAC using Deployment Project
    ... If you need to mimic the process of 'gacutil' and/or 'regasm' because ... p.GacInstall(file); // for gac installation ... > codebase on the dll's properties. ...
    (microsoft.public.dotnet.general)
  • 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: 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)
  • RE: GacUtil missing in .NET v1.1
    ... As far as I can tell, gacutil is not included with the .net redistributable. ... installer put the assemblies in the GAC. ... > pbromley at adi dot co dot nz ...
    (microsoft.public.dotnet.framework)
  • [DEPLOY] No GacUtil
    ... we use a third-party utility to create the installer for our web ... into the gac using this third-party installer w/o using gacutil since gacutil is ... any internal ways of installing things into the GAC. ...
    (microsoft.public.dotnet.languages.vb)