/build/static/layout/Breadcrumb_cap_w.png

Oracle Java Runtime Environment

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Views: 16.7k  |  Created: 09/10/2014 by: packageologist

Average Rating: 0
Java Runtime Environment has 1 inventory records, 64 Questions, 7 Blogs and 20 links. Please help add to this by sharing more!

Deployment Tips (2)

Most Common Setup Type
Windows Installer (MSI)
Average Package Difficulty Rating
Rated 4 / 5 (Somewhat Difficult) based on 1 ratings
Most Commonly Reported Deployment Method
Windows Installer with Custom Transform (MST)
0
Script
'Cleanup Script to Uninstall All Previous Versions of JRE
'On Error Resume Next

Const HKLM = &h80000002

Const SearchValue = "DisplayName"
Const MatchData   = "JAVA"

Set objShell = WScript.CreateObject("WScript.Shell")
Set reg = GetObject("winmgmts://./root/default:StdRegProv")

strProgramFiles = objShell.ExpandEnvironmentStrings("%ProgramFiles(x86)%" & "\")

If InStr(strProgramFiles,"%") Then
  StartKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
  FindAppKey HKLM, StartKey, SearchValue, MatchData
Else 
  StartKey1 = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
  StartKey2 = "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
  FindAppKey HKLM, StartKey1, SearchValue, MatchData
  FindAppKey HKLM, StartKey2, SearchValue, MatchData
End If


Sub FindAppKey(root, key, value, data)
  reg.EnumValues HKLM, key, names, types
  If Not IsNull(names) Then
    For Each name In names
      
      If name = value Then
        reg.GetStringValue HKLM, key, name, regdata
strRegData = UCase(regdata)
        If InStr(strRegData, data) Then
 If InStr(strRegData,"UPDATER") OR InStr(strRegData,"DEVELOPMENT")Then
            'Do Nothing
 Else
   reg.GetStringValue HKLM, key, "UninstallString", strPdtCode
   strUninstallString = strPdtCode & " /qn REBOOT=ReallySuppress"
            'Msgbox strUninstallString
   objShell.Run strUninstallString,0,True
 End If
        End If
      End If
    Next
  End If

  'value not found in current key => continue search in subkeys
  reg.EnumKey root, key, subkeys
  If Not IsNull(subkeys) Then
    For Each sk In subkeys
      FindAppKey root, key & "\" & sk, value, data
    Next
  End If
End Sub


'#### Run seperate command for JAVA Auto Updater Uninstallaton
objShell.Run "msiexec.exe /X{4a03706f-666a-4037-7777-5f2748764d10} /qn REBOOT=ReallySuppress", 0, true

'##### Use Sysnative in Program commandline


Setup Information:
Setup Type: Windows Installer (MSI)
Deployment Method Used: Windows Installer with Custom Transform (MST)
Deployment Difficulty: Somewhat Difficult
Platform(s): Windows

Inventory Records (1)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

Versions

Java Runtime Environment

Version

8.x

Questions & Answers (64)

Questions & Answers related to Oracle Java Runtime Environment

2
ANSWERS
1
ANSWERED
0
ANSWERS
6
ANSWERED
2
ANSWERED
0
ANSWERS
1
ANSWERED
9
ANSWERED
2
ANSWERED
4
ANSWERS
1
ANSWERS
4
ANSWERED
2
ANSWERS
2
ANSWERS
4
ANSWERS
4
ANSWERED
1
ANSWERED
2
ANSWERS
1
ANSWERS
1
ANSWERS

Blogs (7)

Blog posts related to Oracle Java Runtime Environment

Reviews (0)

Reviews related to Oracle Java Runtime Environment

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ