Re: Installer puts assemblies in GAC, but app doesn't see them and other oddities
- From: "Phil Wilson" <phil.wilson@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Jan 2007 10:15:17 -0800
This should have never worked. Assemblies aren't committed into the GAC
until the InstallFinalize step. This means that Install custom actions that
reference GAC assemblies will not work. I'm assuming your setup program
just adds them to the GAC in the File System view.
http://msdn2.microsoft.com/en-gb/library/aa369289.aspx
A Commit custom action should work since the assemblies are in the GAC by
this time.
--
Phil Wilson
[Microsoft MVP Windows Installer]
"wheresjim" <wheresjim@xxxxxxxxx> wrote in message
news:1168561602.388353.48920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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?
.
- Follow-Ups:
- References:
- Prev by Date: Re: Visual Studio Installer
- Next by Date: Re: Installer puts assemblies in GAC, but app doesn't see them and other oddities
- Previous by thread: Re: Installer puts assemblies in GAC, but app doesn't see them and other oddities
- Next by thread: Re: Installer puts assemblies in GAC, but app doesn't see them and other oddities
- Index(es):
Relevant Pages
|