问题
I am using the following property to set/read registry values in my code. However, in the line:
RegistryKey regKey = Registry.CurrentUser;
regKey is null. This is happening only in a few machines. Any idea?
回答1:
RegistryKey regRPP = Registry.CurrentUser.CreateSubKey(@"Software\Softech\FaceReader");
//this is the path it will create
regRPP.SetValue("FaceReaderURL", "http://localhost/pnm/v4_spp/");
来源:https://stackoverflow.com/questions/6895621/registry-currentuser-is-null