hope this will help u
Dim key As RegistryKey = Registry.LocalMachine.OpenSubKey("Software", True)
'// Add one more sub key
Dim newkey As RegistryKey = key.CreateSubKey("LoginTest")
newkey.SetValue("UserId", value variable)
u can use set value for insertng values in sepcified location in registry
> Hi,
>
[quoted text clipped - 22 lines]
> Thanks,
> BLH
BLH - 07 Oct 2004 16:53 GMT
Hi Girish,
Thanks for your reply, but I don't want to know how to programmatically add
a registry key / value.
In a .NET Setup Package, I have a registry Key named "Installation Path". I
don't want to hard code a value like: "C:\MyApp", because the user might
install my application into any folder.
So my question is, during the installation I want the value of my
Installation Path key to be set to the directory where the user installed the
application. How do I do that? In my .NET Setup Package, how can I specify
a dynamic variable for a key, that gives me the application installation path
that the user has chosen?
Thanks,
BLH
> hope this will help u
> Dim key As RegistryKey = Registry.LocalMachine.OpenSubKey("Software", True)
[quoted text clipped - 37 lines]
> > Thanks,
> > BLH