Chris,

>but when I try to do that programmatically in .NET, I'm getting an
>unauthorized access exception (even though I'm an administrator)

Did you open the key with write access? The default is read only access. 
See the different overloads of RegistryKey.OpenSubKey().


>and if
>I add it through the installer itself, the "(Default)" key isn't written
>to, it's creating a new "(Default)" value which doesn't get read by
>VS.NET.

You probably typed in the name "(Default)" manually, but that's not really 
the name of the key, it's just something most Registry editors display. The 
default key doesn't have a name. So in the setup project, you should add a 
value and then delete the name of it.


Mattias

===
Mattias Sjögren
[EMAIL PROTECTED]

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