how to create registry key in c# : i am trying to create registry but cant,i change the permission and manually i can create but i want to create using c# here is my code
------------------------------------------------------------
 RegistryKey key = Registry.ClassesRoot.CreateSubKey(@"CLSID\\{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}\\Shell\\Unlock\\command");
            key.SetValue("", Application.ExecutablePath, RegistryValueKind.String);
------------------------------------------------------------
i add it manually by changing the permission but its not work in c#
[check this][1]


  [1]: https://i.stack.imgur.com/JZ4YL.png