Befehle, um Amazon Corretto 21 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 Amazon.Corretto.21.JDK -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Amazon.Corretto.21.JDK -e --silentwinget uninstall --id Amazon.Corretto.21.JDK -e --silentNach Installer
64-Bit · MSI · Alle Benutzer
Stille Installation
msiexec /i amazon-corretto-21.0.13.0.11-windows-x64.msi /qn /norestartProtokoll schreiben
msiexec /i amazon-corretto-21.0.13.0.11-windows-x64.msi /qn /norestart /l*v "%TEMP%\amazon-corretto-21-install.log"Deinstallation
msiexec /x {E0EC7B2A-F026-4580-BF35-021BF022B7DD} /qn /norestart- MSI-Produktcode
- {E0EC7B2A-F026-4580-BF35-021BF022B7DD}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E0EC7B2A-F026-4580-BF35-021BF022B7DD}
- UpgradeCode
- {590058C2-642A-4980-A36B-A1212D1C4E5D}
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-amazon-corretto-21.ps1
$url = 'https://corretto.aws/downloads/resources/21.0.13.0.11/amazon-corretto-21.0.13.0.11-windows-x64.msi'
$sha256 = '9B2470F031616C8CE92274EF64635551659E644AF94B6BAC8FD72A84F59211E3'
$file = Join-Path $env:TEMP 'amazon-corretto-21.0.13.0.11-windows-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait