1 | Key/value does exist. |
0 | Key/value does not exist. |
KeyName | Registry key path. |
ValueName | Optional. Name of value to look for. Leave this out if you are looking for a key, rather than a value. |
% registry set {HKEY_CURRENT_USER\Software\My} testy 123
% RegistryExists {HKEY_CURRENT_USER\Software\My} testy
1
% registry delete {HKEY_CURRENT_USER\Software\My} testy 123
% RegistryExists {HKEY_CURRENT_USER\Software\My} testy
0