C# Create Values in Registry Local Machine

后端 未结 5 1795
闹比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:50

    Non-admin and unelevated admin users don't have rights to modify the HKEY_LOCAL_MACHINE key. Run the program 'as administrator'.

提交回复
热议问题