Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if
- windows of operating system
- then
- if
- (
- exists value "DisplayName" of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
- AND
- exists value "DisplayVersion" of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
- )
- then
- (
- values
- whose
- (
- name of it is "DisplayName"
- )
- of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry, values
- whose
- (
- name of it is "DisplayVersion"
- )
- of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
- )
- as string
- else
- if
- windows of operating system
- then
- if
- (
- exists value "DisplayName" of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry
- AND
- exists value "DisplayVersion" of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry
- )
- then
- (
- values
- whose
- (
- name of it is "DisplayName"
- )
- of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry, values
- whose
- (
- name of it is "DisplayVersion"
- )
- of keys
- whose
- (
- value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
- OR
- value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
- OR
- value "DisplayName" of it as string as lowercase starts with "java"
- )
- of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry
- )
- as string
- else
- "Java Not Installed"
- else
- "Not Applicable"
- else
- "Not Applicable"
Advertisement
Add Comment
Please, Sign In to add comment