I got that far, but the problem is that any time I try to manipulate the
registry, it's throwing "System.UnauthorizedAccessException: Cannot
write to the registry key." even though I'm an Administrator. (Note that
this is with Microsoft.Win32) and as I stated in the original message,
the Registry key created by the installer is a duplicate of the
(Default), not updating the default.

Chris


-----Original Message-----
From: Marsh, Drew [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 24, 2002 12:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Adding assemblies to VS.NET "Add References"
Dialog

Chris M. Szurgot [mailto:[EMAIL PROTECTED]] wrote:

> So, my question is this:
> 1) Is there a place to drop assemblies so that they will
> automatically get picked up (without putting them in places
> like the framework directory, or the Primary Interop
> directory (which I guess would be ok)
>
> or
>
> 2) is there an easy way to add a directory/registry entry to
> that list?

Here's how to do it:

1) Install your assemblies to something like "C:\Program Files\Your
Company\Your Product\"
2) Register your assemblies in the GAC
3) You create a key under
HKLM\Software\Microsoft\.NETFramework\AssemblyFolders for each of your
assemblies with a name of "Assembly.Name" (no .dll) and a default value
that
points to the location the assembly was installed in step 1.

HTH,
Drew
.NET MVP

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to