473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Global Assembly Cache - Installation

We don't use the Microsoft Windows Installer 2.0 for our setup packages.
Instead, we use InnoSetup which is much easier to use and learn and more
flexible (that I have found). The only part that is making me frustrated is
I can't seem to write an installer that will (a) install into the global
assembly cache and (b) throw an exception if the install failed.

We can't use GACUTIL to install into the gac because GACUTIL is not
redistributable. So I wrote a small app that installs into the GAC using
the System.EnterpriseServices.Internal.Publish class method GacInstall.
This works very well for (a). For (b) though, it doesn't. If for some
reason or another GacInstall fails to install the assembly, no exception is
raised, and there are no return values (since it's 'void'). So my app
returns success even though the actual assembly didn't get installed into
the GAC correctly.

Unless there is another way out there, I will need to perform all of the
checks / requirements myself in this gac installer executable prior to
calling GacInstall. Does anyone out there know of all of the checks and
requirements for a GacInstall to be successful? Here are a few I know of
currently:

1.) Assembly path must exists (umm, yeah, no brainer here).
2.) Assembly must be signed with a strong-name.

Thanks in advance :)

Mythran
Aug 18 '06 #1
1 3365
Have you tried using the supported GAC APIs?

http://msdn2.microsoft.com/en-us/library/ms230575.aspx
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Simon Wallis | last post by:
I know the general purpose for the GAC is to share a component among many applications. But even when you add something to the GAC, you still have to manually create a reference to the DLL in your...
3
by: RickN | last post by:
We have a C# remoting application that runs thru the web. Assemblies appear to be loaded from the download cache. Is there any way to have them automatically copied to the GAC and be loaded from...
3
by: DDE | last post by:
Hi everybody, I developed an assembly common to all my Web Services, so I registered it and put it in the Global Assembly Cache. Now, I modified this assembly, but cannot succed to have this new...
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
0
by: John Wallace | last post by:
Hi, I have an initial build of an ASP.NET/C# application (based around a "custom control" with some supporting webforms) that contains the usual mix of: 1) ASP files 2) A single DLL...
3
by: Jerry Morton | last post by:
Hi, My ASP.NET application will be installed on multiple web sites on one server. This means that the application DLL will be loaded once for each installation - which seems inefficient. If I...
1
by: Ray | last post by:
Dear all, Now, I am using Global Assembly Cache to share assembly between server and clients. However, it seems that the server and clients use individual Global Assembly Cache. For example, the...
6
by: Piotrekk | last post by:
Hi In my solution I have two projects. First is Library project. The second project uses this library ( dll ). I am registering this assembly in global assembly cache ( by .net configuration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.