Создание ключа в реестре HKEY_CURRENT_USER \ Software \ - C#
Формулировка задачи:
Пытаюсь создать ключ в KEY_CURRENT_USER \ Software \ а в ответ - "Не удалось выполнить запись в раздел реестра" , запуск от админа не помогает (
string TestKey = "?123456???";
RegistryKey currentUserKey = Registry.CurrentUser.OpenSubKey("Software");
RegistryKey helloKey = currentUserKey.CreateSubKey("HelloKey");
helloKey.SetValue("login", "admin");
helloKey.SetValue("password", TestKey);
helloKey.Close();Решение задачи: «Создание ключа в реестре HKEY_CURRENT_USER \ Software \»
textual
Листинг программы
RegistryKey currentUserKey = Registry.CurrentUser.OpenSubKey("Software", true);