Archive: Registry problem


Registry problem
Hello!

I need to delete some nodes from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB in my NSIS script. User with administrative rights have no rights to do it by default (I need to edit user rigths manually in Regedit). Only "SYSTEM" user have full rights to edit this node.
Which way I can work under "SYSTEM" login in my NSIS-script (current user have administrative rights)? May be there is another way to solve my problem?

Thanks.


You can use the SetRegKeyAccess function from the UserMgr plugin to set access rights for registry entries.


Thanks. I'll try this way.


It sucesfully works under Windows XP but not working under Vista/Windows 7. Deleting system nodes is impossible in new operating systems I suppose...


What does not work?
Setting the access rights, or deleting the keys?

Can you delete the entries manually (from the Registry Editor)?


I can delete this nodes manually only in Windows XP (when I change access for this nodes manually). I've full program control with UserMgr plugin in Windows XP. But I can't delete it in Vista/W7 (also I can't change nodes access manually for administrator). I've full administrator rights. I think this nodes fully controlled by system in Vista/W7.