Notification

Icon
Error

Java Uninstall Deployment - Java deploy does not work

Posted: Thursday, July 1, 2021 9:49:00 AM(UTC)
Rodrigo Varela

Rodrigo Varela

Member Original PosterPosts: 2
0
Like
Hi everoyone,

I did this deployment to uninstall the new version of Java and install Java 202 in our clients.

If i deploy the single steps it works normally, but when I run the whole deployment, it got stuck at the second step.

At first I though the problem could be that there was not timeout between steps,I introduce it but nothing change it.

For the timeout I have tried with >Powershell.exe "start-sleep -s 90" & timeout /nobreak /t

Looking through the logs i got this error:

Result: Package timeout reached. Task Error: The last run of the task was terminated by the user. Timeout: (1200Sec)

I also tried changing the maximun time for the deployment, no changes. Brick wall

Any ideas??

Thanks to everyone!! Angel


Copy - Copy - Java UninstallDownload Package
DescriptionUninstaller Java 8
Final ActionNothing
Max. Duration20 min(s), 0 hour(s)
RescanNo
Steps
1. Call Script
TypeInstaller
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command "{PackageShare}\Installers\Java_Uninstall\Java_Uninstall.bat" /S
2. Pause
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command Powershell.exe "start-sleep -s 90"
3. Install Java 202 32b
TypeInstaller
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command "{PackageShare}\Installers\Java_Uninstall\Java-8-U202.exe" /s AUTO_UPDATE=0
looktall
#1looktall Member Posts: 8  
posted: 10/6/2021 8:42:03 AM(UTC)
Before i stopped using Java entirely i used to use the below script to remove old Java installs and then install the latest using the msi.


Code:
taskkill /F /IM iexplorer.exe
taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe
taskkill /F /IM javaw.exe
taskkill /F /IM jqs.exe
taskkill /F /IM jusched.exe

powershell -executionpolicy bypass -noninteractive -noprofile -file .\removejava.ps1

xcopy java.settings.cfg %ProgramData%\Oracle\Java\ /Y

msiexec.exe /i jre1.8.0_281.msi SPONSORS=0 JU=0 JAVAUPDATE=1 AUTOUPDATECHECK=1 RebootYesNo=No WEB_JAVA=1 /q /L*V "c:\windows\temp\javainstall.log"


The removejava powershell script is as below.
It will will uninstall any version of Java.

Code:
$javaVer = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall |
Get-ItemProperty |
Where-Object {$_.URLInfoAbout -match "java" } |
Select-Object -Property DisplayName, UninstallString

ForEach ($ver in $javaVer) {

If ($ver.UninstallString) {

$uninst = $ver.UninstallString
& cmd /c $uninst /quiet /norestart
}

}


Active Discussions

Lansweeper ManageEngine ADSelfService Plus Vulnerability
by  TheGift73   Go to last post Go to first unread
Last post: 11/30/2021 10:25:01 AM(UTC)
Lansweeper OS: Not latest Build of Windows 10 not working
by  Luke Maslany  
Go to last post Go to first unread
Last post: 11/29/2021 2:01:49 PM(UTC)
Lansweeper Cannot find right class
by  FabioB   Go to last post Go to first unread
Last post: 11/29/2021 8:16:33 AM(UTC)
Lansweeper vCenter vSphere Web Client Vulnerabilities
by  Esben.D  
Go to last post Go to first unread
Last post: 11/25/2021 12:24:24 PM(UTC)
Lansweeper Report for Hardware Maintenance
by  PBjelly   Go to last post Go to first unread
Last post: 11/23/2021 2:53:33 PM(UTC)
Lansweeper Need a little help here
by  AMcCarron  
Go to last post Go to first unread
Last post: 11/18/2021 3:07:25 PM(UTC)
Lansweeper Solftware Installed by member of AD Group
by  RPZ   Go to last post Go to first unread
Last post: 11/17/2021 9:57:42 PM(UTC)
Lansweeper Uptime Report duplicate powerstates
by  INNO-IT  
Go to last post Go to first unread
Last post: 11/16/2021 5:10:23 PM(UTC)