if
(
exists value "DisplayVersion" whose
(
(
it = "7" and it >= "7.0.000"
)
of
(
it as string as version
)
)
of keys whose
(
value "DisplayName" of it as string as lowercase contains "j2se runtime environment" OR value "DisplayName" of it as string as lowercase starts with "java(tm)" OR value "DisplayName" of it as string as lowercase starts with "java 7"
)
of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry
)
then
(
value "DisplayVersion" whose
(
(
it = "7" and it >= "7.0.000"
)
of
(
it as string as version
)
)
of keys whose
(
value "DisplayName" of it as string as lowercase contains "j2se runtime environment" OR value "DisplayName" of it as string as lowercase starts with "java(tm)" OR value "DisplayName" of it as string as lowercase starts with "java 7"
)
of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry as string
)
else "Not Installed"
if (exists value "DisplayVersion" whose ((it = "7" and it >= "7.0.000") of (it as string as version)) of keys whose (value "DisplayName" of it as string as lowercase contains "j2se runtime environment" OR value "DisplayName" of it as string as lowercase starts with "java(tm)" OR value "DisplayName" of it as string as lowercase starts with "java 7") of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry) then (value "DisplayVersion" whose ((it = "7" and it >= "7.0.000") of (it as string as version)) of keys whose (value "DisplayName" of it as string as lowercase contains "j2se runtime environment" OR value "DisplayName" of it as string as lowercase starts with "java(tm)" OR value "DisplayName" of it as string as lowercase starts with "java 7") of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry as string) else "Not Installed"