C# Create Values in Registry Local Machine

后端 未结 5 1750
闹比i
闹比i 2020-12-28 15:14

The following code is not working for me:

public bool createRegistry()
{
    if (!registryExists())
    {
        Microsoft.Win32.Registry.LocalMachine.Creat         


        
5条回答
  •  孤城傲影
    2020-12-28 15:34

    Set the Premission Check bit to true...

    Microsoft.Win32.Registry.LocalMachine.CreateSubKey("Software\\xelo\\", true);
    

    :)

提交回复
热议问题