You can use RegistryKey.OpenBaseKey to solve this problem:
var baseReg = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
var reg = baseReg.CreateSubKey("Software\\Test");
More Related Contents:
- Reading the registry and Wow6432Node key
- Associate File Extension with Application
- Reading 64bit Registry from a 32bit application
- OpenSubKey() returns null for a registry key that I can see in regedit.exe
- Requested registry access is not allowed
- How to run a C# application at Windows startup?
- Programmatically Set Browser Proxy Settings in C#
- How to delete a registry value in C#
- Registry Watcher C#
- modifying the registry key value
- Check if application is installed in registry
- How to read value of a registry key c#
- Access Visual Studio 2017’s private registry hive
- Registry.LocalMachine.OpenSubKey() returns null
- What are some alternatives to RegistryKey.OpenBaseKey in .NET 3.5?
- How do I pass credentials to a machine so I can use Microsoft.Win32.RegistryKey.OpenRemoteBaseKey() on it?
- Filetype association with application (C#)
- Register file extension in window registry?
- How to check if a registry value exists using C#?
- Why is RegOpenKeyEx() returning error code 2 on Vista 64bit?
- Read a Registry Key
- How to determine Windows Java installation location
- How can I find the upgrade code for an installed application in C#?
- Why are mutable structs “evil”?
- How can I get every nth item from a List?
- How to enable Nullable Reference Types feature of C# 8.0 for the whole project
- Where can I find the assembly System.Web.Extensions dll?
- Understanding Diagrams [closed]
- Creating a custom-shaped button with one rounded corner
- JavaScript: Alert.Show(message) From ASP.NET Code-behind