jimwald

Java Relevance Query

Nov 24th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. if
  2. windows of operating system
  3. then
  4. if
  5. (
  6. exists value "DisplayName" of keys
  7. whose
  8. (
  9. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  10. OR
  11. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  12. OR
  13. value "DisplayName" of it as string as lowercase starts with "java"
  14. )
  15. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
  16. AND
  17. exists value "DisplayVersion" of keys
  18. whose
  19. (
  20. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  21. OR
  22. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  23. OR
  24. value "DisplayName" of it as string as lowercase starts with "java"
  25. )
  26. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
  27. )
  28. then
  29. (
  30. values
  31. whose
  32. (
  33. name of it is "DisplayName"
  34. )
  35. of keys
  36. whose
  37. (
  38. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  39. OR
  40. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  41. OR
  42. value "DisplayName" of it as string as lowercase starts with "java"
  43. )
  44. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry, values
  45. whose
  46. (
  47. name of it is "DisplayVersion"
  48. )
  49. of keys
  50. whose
  51. (
  52. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  53. OR
  54. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  55. OR
  56. value "DisplayName" of it as string as lowercase starts with "java"
  57. )
  58. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of native registry
  59. )
  60. as string
  61. else
  62. if
  63. windows of operating system
  64. then
  65. if
  66. (
  67. exists value "DisplayName" of keys
  68. whose
  69. (
  70. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  71. OR
  72. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  73. OR
  74. value "DisplayName" of it as string as lowercase starts with "java"
  75. )
  76. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry
  77. AND
  78. exists value "DisplayVersion" of keys
  79. whose
  80. (
  81. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  82. OR
  83. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  84. OR
  85. value "DisplayName" of it as string as lowercase starts with "java"
  86. )
  87. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry
  88. )
  89. then
  90. (
  91. values
  92. whose
  93. (
  94. name of it is "DisplayName"
  95. )
  96. of keys
  97. whose
  98. (
  99. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  100. OR
  101. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  102. OR
  103. value "DisplayName" of it as string as lowercase starts with "java"
  104. )
  105. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry, values
  106. whose
  107. (
  108. name of it is "DisplayVersion"
  109. )
  110. of keys
  111. whose
  112. (
  113. value "DisplayName" of it as string as lowercase contains "j2se runtime environment"
  114. OR
  115. value "DisplayName" of it as string as lowercase contains "runtimeenvironment"
  116. OR
  117. value "DisplayName" of it as string as lowercase starts with "java"
  118. )
  119. of key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of x32 registry
  120. )
  121. as string
  122. else
  123. "Java Not Installed"
  124. else
  125. "Not Applicable"
  126. else
  127. "Not Applicable"
Advertisement
Add Comment
Please, Sign In to add comment