Maybe I am going crazy, but is anyone else having trouble using this function? I am trying to test if a certain MS hotfix is installed on a machine through the registry. Here is the code I am using:
hotfix = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uni nstall\\KB884020");
if (hotfix == "true") then
Dialog.Message("Notice", "Your message here.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
As you can see I was just testing to see if the result was comming back true or not. I also tested it with false. Neither of these seem to be what is being returned. And before anyone asks yes this key does exist on the machine I am testing it on. Thanks for your assistance once again.
-Pete
hotfix = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uni nstall\\KB884020");
if (hotfix == "true") then
Dialog.Message("Notice", "Your message here.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
As you can see I was just testing to see if the result was comming back true or not. I also tested it with false. Neither of these seem to be what is being returned. And before anyone asks yes this key does exist on the machine I am testing it on. Thanks for your assistance once again.
-Pete
Comment