Befehle, um Java 8 ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id Oracle.JavaRuntimeEnvironment -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Oracle.JavaRuntimeEnvironment -e --silentwinget uninstall --id Oracle.JavaRuntimeEnvironment -e --silentNach Installer
64-Bit · EXE · Alle Benutzer
Stille Installation
AutoDL /s REBOOT=0Deinstallation
msiexec /x {73224AE4-039E-4CA4-87B4-2F64180511F0} /qn /norestart- MSI-Produktcode
- {73224AE4-039E-4CA4-87B4-2F64180511F0}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{73224AE4-039E-4CA4-87B4-2F64180511F0}
- UpgradeCode
- {57BDA5C6-443C-4D65-B233-282396418000}
32-Bit · EXE · Alle Benutzer
Stille Installation
AutoDL /s REBOOT=0Deinstallation
msiexec /x {73224AE4-039E-4CA4-87B4-2F32180511F0} /qn /norestart- MSI-Produktcode
- {73224AE4-039E-4CA4-87B4-2F32180511F0}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{73224AE4-039E-4CA4-87B4-2F32180511F0}
- UpgradeCode
- {57BDA5C6-443C-4D65-B233-282393218000}
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-java-8.ps1
$url = 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=254080_ee9438f370f14316bf0d13e23c26582b'
$sha256 = '5449042A34892DEA95788C6A86E0FEEE5B32EBF500318622733C2D492DA0D391'
$file = Join-Path $env:TEMP 'AutoDL'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/s REBOOT=0' -Wait install-java-8.ps1
$url = 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=254079_ee9438f370f14316bf0d13e23c26582b'
$sha256 = 'F3FE6C1C4F8C960BB23AA2BA2EB39944737F3E66D19D18F28C30A6FBC2C21896'
$file = Join-Path $env:TEMP 'AutoDL'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/s REBOOT=0' -Wait