Wednesday, 18 July 2012
Registry key has subkeys and recursive removes are not supported by this method
In Windows 7& vista os added extra security, so standard user can not access program files and registry without permission,
I got a error while deleting registry "Registry key has subkeys and recursive removes are not supported by this method."
here method used to delete registry is DeleteSubKey of registry.
so i understand new concept which added in win7 & vista - virtualization,
virtualization is new thing added by win7 for extra security for malware & other viruses infection.
means when standard user create key in particular path example i called a function to create key in registry
Dim rgKey As RegistryKey = Registry.LocalMachine.CreateSubKey("SOFTWARE\sai")
means that registry create in HKEY_LOCAL_MACHINE\SOFTWARE\sai
But
it automatically create in HKEY_USERS\new classid \..\SOFTWARE\sai
means it created in profile section of that standard user.
But
if you create by admin it will create in same path which you specify.
so last point is
you can not delete registry created by admin
you can not delete standard user registry by admin bcz you dont know exact path of registry.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment