02-18-2013 02:05 PM
I cannot delete HID subkeys in Windows 7 (32-bit & 64-bit). Please see the registry image below. I need to delete subkey VID_04D8&PID_00DE and its subkeys.
I used LabVIEW 8.5 and had turned off User Account Control. Here is my code:
The error I got is:
Error -604 occurred at Open Registry Key.vi
Possible reason(s): LabVIEW: Remote registry access denied.
In the registry window, I can grant permission of Full Control up to CurrentControlSet level, but starting Enum subkey, Windows won't let me to grant Full Control permission.
Could someone please help on this issue?
02-18-2013 04:33 PM - edited 02-18-2013 04:34 PM
Did you start regedit with elevated privileges? For some registry hives you need that, and no, just being logged in with administrator rights is not "elevated" enough. You need to start the program specifically as Administrator and provide the login credentials, in order to be elevated, even if you are logged in as Administrator already.
02-20-2013 09:21 AM
How do I "start the program specifically as Administrator"? I am administor user.
02-20-2013 09:34 AM
Start, Type regedit, hit find, select regedit.exe, Right-click.
02-20-2013 10:28 AM
Did as suggested, but still got "Unable to save permission changes on Enum. Access is denied." when I tried to give it Full Control.
02-20-2013 10:35 AM
Wait you want to change those values with LabVIEW VIs? If so you have to launch your LabVIEW program as administrator instead. You can't change the access rights of system registry entries easily.
You can usually do that from an explorer window, by right clicking on your program icon and selecting to start it as administrator.