Windows – removing registry key with .reg file

regeditwindows 7windows-registry

Didnt notice this being asked so here i am.
I have a problem with specific registry key:

NvCplDaemon"="RUNDLL32.EXE C:\\Windows\\system32\\NvCpl.dll,NvStartup"

Problem is that i have tried many variations of the reg file like:

Windows Registry Editor Version 5.00

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
"NvCplDaemon"=-"RUNDLL32.EXE C:\\Windows\\system32\\NvCpl.dll,NvStartup"

and

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"NvCplDaemon"=-"RUNDLL32.EXE C:\\Windows\\system32\\NvCpl.dll,NvStartup"

And they all seemingly complete but the key remains.It is not locked or something.I can delete and recreate it manually any time.Im guessing there is some small spelling error on my file because i think i have followed MS instructions: http://support.microsoft.com/kb/310516

This is how it looks in the registry:

enter image description here

Best Answer

Why are you putting "RUNDLL32.EXE C:\\Windows\\system32\\NvCpl.dll,NvStartup" in to the reg file? The documentation says that to remove a value you put a =- after the value name.

HKEY_LOCAL_MACHINE\Software\Test
"TestValue"=-