Deleting a registry key...
*** IS WRONG HERE?!?!?!
Microsoft.Win32.Registry.LocalMachine.DeleteSubKey("reg://HKEY_CURRENT_USER\Software\GameSpy\GameSpy 3D\Registration\Crypt")
Crypt has a value....trying to totally delete Crypt
it says it cant find a subkeytree for the path....
I NO ITS THERE!
HELP PLZZZZZ!
Re: Deleting a registry key...
Quote:
Originally posted by theonetrueace
*** IS WRONG HERE?!?!?!
Microsoft.Win32.Registry.LocalMachine.DeleteSubKey("reg://HKEY_CURRENT_USER\Software\GameSpy\GameSpy 3D\Registration\Crypt")
Crypt has a value....trying to totally delete Crypt
it says it cant find a subkeytree for the path....
I NO ITS THERE!
HELP PLZZZZZ!
meh, found your problem :D
first of all if the subkey isnt empty you should use the DeleteSubKeyTree method. Second, the path doesnt exist, it's right. why? because you are trying to access "LocalMachinereg://HKEY_CURRENT_USER\Software\GameSpy\GameSpy 3D\Registration\Crypt"
since you are using Registy.LocalMachine, you dont need to use the compelete path in the argument. Use this instead:
VB Code:
Microsoft.Win32.Registry.LocalMachine.DeleteSubKey("Software\GameSpy\GameSpy 3D\Registration\Crypt")
HTH :)