Registry is windows built-in hierarchical database which stores computer system information.
We can modify or insert registry value by hand-on or through programming language. For example in C#, we can use Microsoft.Win32.Registry to set Registry’s key and value,. However, sometimes we cannot Set Registry’s key and value perhaps due to permission problem. Another reason is that Visual Studio Platform is 32 bit.
We only have to not click 32 bit or choose x64 for the platform target to allow Registry work properly. On the other hand, we can do this by modify the project’s csproj file to make the platform 64 bit.
Sometimes we have to set the computer system’s parameter. Setting Registry’s key and value may be just only a small part of an entire project’s development, hope this article can be helpful for the developers to solve Registry setting problems in some scenarios.