/build/static/layout/Breadcrumb_cap_w.png

Uninstall Java Auto Updater 2.1.9.5 (Java 7 Update 21)

Previous to this version I used to script the removal of the updater with "msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}". Does anyone know the ID for Java 7 Update 21 auto Updater version 2.1.9.5 ?


1 Comment   [ + ] Show comment
  • It comes off when you uninstall Java 7 update 21. At least mine does when I do it through control panel. - Kdebiasse 10 years ago

Answers (4)

Answer Summary:
Posted by: anonymous_9363 11 years ago
Red Belt
0

Extract the MSI and get the ProductCode from there.

Posted by: SMal.tmcc 11 years ago
Red Belt
0

According to the registry keys that software code is correct.

Normally the uninstall /x sting matches the hive keyset name, but this software has none.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4A03706F-666A-4037-7777-5F2748764D10}]
"DisplayVersion"="2.1.9.5"
"Publisher"="Sun Microsystems, Inc."
"DisplayName"="Java Auto Updater"

this is for j7u21  see how the keyset matches the uninstall string

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83217017FF}]
"DisplayVersion"="7.0.210"
"Publisher"="Oracle"
"DisplayName"="Java 7 Update 21"


Comments:
  • Yes, it appears that string still works, just failed on my test subset of PC's for some reason which I will look into, but it worked fine for others. Thanks for your help, pointed me in the right direction. - KiwiJJ 11 years ago
Posted by: pinecones 6 years ago
White Belt
0
#You can do this with powershell:

$appName = 'Java Auto Updater'

# Set registry keys to search
$registryUnisntallx86 = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall'
$registryUnisntallx64 = 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
$regKeyList = $registryUnisntallx86,$registryUnisntallx64
       
# Grab info from registry (the select section is ripped from another script, it's just useful props)
$returnList = (
    $regKeyList |
    ForEach{Get-ItemProperty ($_ + '\*')} |
    Select PSChildName,
            DisplayName,
            Publisher,
            DisplayVersion,
            UninstallString,
            DisplayIcon,
            EstimatedSize,
            Version,
            InstallDate,
            InstallLocation,
            InstallSource,
            ModifyPath,
            PSPath |
    Sort -Unique PSChildName
)
# Find matching apps by name
$foundApp = (
    $returnList |
    Where {$_.DisplayName -like ('*' + $AppName + '*')} |
    Where {$_ -ne $null} #strip null entries
)
# If there were results
If ($foundApp){
    # run the uninstaller for each result
    ForEach ($instance in $foundApp){
        $dtStamp = Get-Date -Format 'yy.dd.MM.hh.mm.ss'
        $appSID = $instance.PSChildName
        $msiexecEXE = 'msiexec.exe'
        # arguments uninstall by app SID, quietly, suppress restart, and logs the process
        $msiexecArgs = (
            '/x ' + $appSID + ' ' +
            '/qn /norestart ' +
            '/L*V "C:\Windows\Logs\Uninstall_' + $appName + '_' + $dtStamp + '.log"'
        )
        $null = Start-Process $msiexecEXE -Wait -ArgumentList $msiexecArgs
    }
}
Posted by: Mako-Wish 6 years ago
White Belt
0
VBScript:

'\\ DECLARE VARIABLES
Dim installer
Dim productCode, productName
Dim found : found = False

'\\ CREATE SCRIPTING OBJECTS
Set installer = CreateObject("WindowsInstaller.Installer")
Set objShell  = CreateObject("WScript.Shell")

'\\ LOOP THROUGH EACH MSI PRODUCT
For Each productCode In installer.Products
If installer.ProductInfo(productCode, "ProductName") = "Java Auto Updater" Then
'\\ WE FOUND JAVA AUTO UPDATER
found = True
'\\ UNINSTALL IT USING MSIEXEC
objShell.Run "MsiExec.exe /X" & productCode & " /QB /NoRestart", 1, True
End If
Next

If Not found Then msgBox "Java Auto Updater is not installed.", 0+64, "Not Installed"


 
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