Hello All,
I am working on finding Java and removing old versions (thanks dakota for providing the removal solution side), but if the latest Java does not exists I need to install it.
I worked on the bellow.
The Computer Relevance gives a True result (as expected) but the Fixlett gives a False result (the fixlett creates “C:\windows\temp\JAVA-FALSE4” folder) and I do not know why?
Please can any one shed some light on this, or point where I have gone wrong?
The Computer Relevance (that seems to work as expteced) :-
exists keys whose (value “DisplayName” of it as string equals “Java 8 Update 231” ) of keys “HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall” of (x64 registries;x32 registries)
Value retuned is TRUE
A Fixlett using the same code returns False :-
if (exists keys whose (value “DisplayName” of it as string equals “Java 8 Update 231” ) of keys “HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall” of (x64 registries;x32 registries)) then
folder create C:\windows\temp\JAVA-TRUE4
else
folder create C:\windows\temp\JAVA-FALSE4
On the machine that the relevance works on (True result), the fixlett creates “C:\windows\temp\JAVA-FALSE4” folder and I do not know why?
Many Thanks
Paul