Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th January 2003, 07:02   #1
christophw
Junior Member
 
Join Date: Jan 2003
Posts: 3
.NET issue - calling gacutil

Our new release of SharpDevelop forces us to register an assembly into the Global Assembly Cache (GAC). The utility to use is gacutil.exe, which on some machines is in the path, while on others, it isn't (Runtime-only or VS.NET machines). Though I know where to find (some) path information in the registry, does anyone by chance have solved this issue already and is willing to share their code?

Chris
christophw is offline   Reply With Quote
Old 29th January 2003, 13:28   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
If this utility is only include in .NET SDK then you must include it in your installer or find out a way to register without it using .NET API.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th January 2003, 13:58   #3
christophw
Junior Member
 
Join Date: Jan 2003
Posts: 3
The utility IS on every .NET machine, runtime or sdk. But only the SDK registers the path to the utility in the path variable.

Chris
christophw is offline   Reply With Quote
Old 29th January 2003, 14:07   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
You'll have to excuse me, I don't have anything on my computer that has to do with .NET. I have never worked with it.

Isn't there some key in the registry that holds the .NET directory path? Maybe an environment variable... HKCR\Applications contains paths to some programs, maybe it's there too.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th January 2003, 14:16   #5
christophw
Junior Member
 
Join Date: Jan 2003
Posts: 3
There are registry keys, however, I yet have to find a document outlining which ones to combine to get the path, there are a few combinations possible (especially when .NET v1.0 and v1.1 are on the machine). I personally do not want to resort to write a managed application (there's a property on a class that gives you the path) just to start gacutil...

Chris
christophw is offline   Reply With Quote
Old 29th January 2003, 14:25   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
OK, I have tried

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp 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