Brewster333
27th October 2009 13:53 UTC
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.
jpderuiter
27th October 2009 15:40 UTC
You can use the SetRegKeyAccess function from the UserMgr plugin to set access rights for registry entries.
Brewster333
27th October 2009 16:25 UTC
Thanks. I'll try this way.
Brewster333
28th October 2009 11:38 UTC
It sucesfully works under Windows XP but not working under Vista/Windows 7. Deleting system nodes is impossible in new operating systems I suppose...
jpderuiter
28th October 2009 15:30 UTC
What does not work?
Setting the access rights, or deleting the keys?
Can you delete the entries manually (from the Registry Editor)?
Brewster333
30th October 2009 16:52 UTC
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.