LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot delete HID subkeys in Windows 7

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. 

 

Registry.jpg

 

I used LabVIEW 8.5 and had turned off User Account Control. Here is my code:

 

Delete Registry.jpg

 

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? 

0 Kudos
Message 1 of 6
(3,568 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(3,547 Views)

How do I "start the program specifically as Administrator"? I am administor user. 

0 Kudos
Message 3 of 6
(3,523 Views)

Capture.PNG

Start, Type regedit, hit find, select regedit.exe, Right-click.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(3,518 Views)

Did as suggested, but still got "Unable to save permission changes on Enum. Access is denied." when I tried to give it Full Control. 

0 Kudos
Message 5 of 6
(3,510 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 6
(3,506 Views)