How do I create a key in the registry (Visual C #)?

I am developing a Windows application in the .NET framework using C #. During the installation of the application, I want to write a specific value to the registry.


source to share

1 answer

Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Names");
key.SetValue("Name", "Isabella");



All Articles