Re: Bootstrap installer puts assemblies in GAC but app doesn't see them



Please don't post duplicates like this. See vsnet.general.
--
Phil Wilson
[Microsoft MVP Windows Installer]
"wheresjim" <wheresjim@xxxxxxxxx> wrote in message
news:1168649736.903176.46180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I created an installer that installs .NET Framework 2.0 as a
prerequisite, which works great, further on in the installation it
places 3 .dlls in the GAC, and then it launches my app, which complains
that the 3 assemblies are not in the GAC, despite the fact that I have
checked, and they are indeed in the GAC.

What's weird is that in my debugging, I installed the .NET SDK so I
could use gacutil which is not installed with the redistributed
framework, as soon as I installed the SDK, the app worked, at which
time I verified that the assemblies were in the GAC. I then
uninstalled the SDK, and the app stopped working, again stating that
the assemblies were not in the GAC. I then copied the gacutil over
from another machine, and re-verified that the assemblies were in the
GAC, despite the error message of my app.

I have previously written an installer for this same app, using the
same assemblies and have not had this problem (though last time I used
VS .NET 2003, and I am now using VS 2005). I have installed .NET from
a redistributable that I had on my disk, as well as a fresh one I have
downloaded.

I'm stumped, anybody?



.



Relevant Pages

  • Re: .NET versioning
    ... If you don't use the GAC, ... >> The key part here is 'installer'. ... behind singed assemblies and what not but others out there don't. ... shouldn't release policy files for their ODP.NET assemblies. ...
    (microsoft.public.dotnet.framework)
  • Re: Using installer classes
    ... I don't believe that the Crystal reports assemblies are in the GAC on every ... to be CR because your Installer class code probably isn't referencing the CR ... What dependencies does your exe need in the Installer class code and are ...
    (microsoft.public.dotnet.framework)
  • Re: Using installer classes
    ... I don't reference any custom GAC assembly in my installer classes, however, I ... do reference local copy assemblies. ...
    (microsoft.public.dotnet.framework)
  • Re: Installer puts assemblies in GAC, but app doesnt see them and other oddities
    ... Assemblies aren't committed into the GAC ... places 3 .dlls in the GAC, and then it launches my app, which complains ... I have previously written an installer for this same app, ...
    (microsoft.public.vsnet.general)
  • Re: How I add a Assembly to the gac in a installer proyect
    ... how it works if you want to replace your assembly in the GAC with a new one. ... so then you need policy assemblies in the GAC. ... of what DLL Hell was all about. ... Definitive Guide to Windows Installer ...
    (microsoft.public.dotnet.framework.setup)