J
JezB
When reading a value from the registry:
string licenceKey = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\MyProg",
"LicenceKey", "").ToString();
It raises an exception if the path HKEY_LOCAL_MACHINE\Software\MyProg does
not exist. But how do I create it?
string licenceKey = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\MyProg",
"LicenceKey", "").ToString();
It raises an exception if the path HKEY_LOCAL_MACHINE\Software\MyProg does
not exist. But how do I create it?