View Full Version : BUG; Registry delete value
Solmos
03-20-2008, 04:04 PM
If you try to delete a default value (AMS7 returns (Default))
For example:
Registy.DeleteValue (HKEY_LOCAL_MACHINE, yourkey, "", true);
AMS7 eliminates ALL values of the key ...
Instead of eliminating the default value ...
Solmos
03-23-2008, 04:30 PM
any comment?
holtgrewe
03-23-2008, 08:37 PM
Solmos
I'm not quite sure what you're trying to do, but you have an extra variable in the command.
The Action Registry.DeleteValue() has only three parameters. Your example shows four...
Registy.DeleteValue (HKEY_LOCAL_MACHINE, yourkey, "", true);
Registry.DeleteValue ( number MainKey, string SubKey, string Value )
Try removing the boolean true and see if it functions properly for you...
hth
P.S. You may have gotten a quicker response if you would have posted this in the proper forum category... ;)
Solmos
03-24-2008, 01:04 AM
sorry bad example. this is:
Registy.DeleteValue (HKEY_LOCAL_MACHINE, yourkey, "");
Delete ALL VALUES IN THE KEY...
Darryl
03-25-2008, 07:40 AM
Thank you, I've logged this to be looked into.
REF: 17325
screwed over
03-25-2008, 08:58 PM
wouldnt that be because the "default" vallue is what defines a folder in the registry and any values in that folder are subvalues to the default one?
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.