Old 4th September 2007, 05:55   #1
adam_j_bradley
Junior Member
 
Join Date: Sep 2007
Posts: 4
Q: Registering DLL's to the GAC with gacutil2

Has anyone had any success running up GacUtil2 (as mentioned in) http://forums.winamp.com/showthread....hlight=gacutil
and available from http://chrison.net/OnlyColdFusionCan...mplicated.aspx

Looks like its been written using MonoDevelop. I don't currently have one, and build an environment to support this is time consuming and nasty !

I'm getting errors running GacUtil2.exe

---snip---
C:\Program Files\Skype Google Desktop Indexer>gacutil2 /i log4net.dll

Unhandled Exception: System.ArgumentException: parsing "(\s|^)(?<match>(-{1,2}|/)(?)(?<value>(\+|-){0,1}))(?=(\s|$))" - Quantifier {x,y} following nothing.
Parameter name: (\s|^)(?<match>(-{1,2}|/)(?)(?<value>(\+|-){0,1}))(?=(\s|$))
at System.Text.RegularExpressions.RegexParser.ScanRegex()
at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options)
at RJH.CommandLineHelper.Parser.HandleSwitches()
at GacUtil2.MainClass.Main(String[] args)
---snip---
Anyone?

Thanks in advance!
Sincerely,
Adam Bradley
adam_j_bradley is offline   Reply With Quote
Old 4th September 2007, 05:56   #2
adam_j_bradley
Junior Member
 
Join Date: Sep 2007
Posts: 4
A better way?

Of course, I'm always happy to learn of a better way if there is one

Adam
adam_j_bradley is offline   Reply With Quote
Old 4th September 2007, 06:18   #3
adam_j_bradley
Junior Member
 
Join Date: Sep 2007
Posts: 4
Thumbs up Fixed!

Found a more recent (and working) version in a SharpDevelop distribution (even found a .NET 1.1 version!).

Find it here http://www.icsharpcode.net/OpenSource/SD/Default.aspx

Adam
adam_j_bradley is offline   Reply With Quote
Old 4th September 2007, 18:29   #4
helix400
Member
 
Join Date: Oct 2003
Posts: 51
Can you post the links as plain text? The forum's anti-spam tools don't let new users post links.

I'm interested in these links myself. We're about a month away from releasing the .NET version of our application, and I'm researching how to use shared .dll's. Using relative paths in a .exe.config file is very promising for us. But if I can use the GAC in a clean easy way, I'd prefer that instead.
helix400 is offline   Reply With Quote
Old 5th September 2007, 00:54   #5
adam_j_bradley
Junior Member
 
Join Date: Sep 2007
Posts: 4
Sharpdevelop contains a recent version of gacutil2 and is available from www dot icsharpcode dot net/OpenSource/SD/

Adam
adam_j_bradley is offline   Reply With Quote
Old 14th September 2007, 00:23   #6
Karim Hernandez
Junior Member
 
Join Date: Sep 2007
Posts: 1
Thanks guys, this worked for me.

I had to get a binary of gacutil2.exe from the SharpDevelop 2.0 SVN source tree for it to work (but if I try recompiling it using a .NET 3.0/2.0 CLR environment, I get the same error as Adam).

During installation I deploy gacutil2 along side the assemblies that need to be installed to the GAC, nsExec::Exec '"${PATH}\gacutil2.exe" /i my.dll', and delete gacutil2.

Same strategy for uninstall, depoy gacutil2 alongside, exec with '/u my.dll', and delete gacutil2.

I'll follow up after we test and ship if I've got any lessons learned/advice.

-Karim
Karim Hernandez is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump