Files
management-scripts/Install-AmazonCorretto.ps1
T

10 lines
410 B
PowerShell
Raw Normal View History

2021-12-22 10:52:51 -05:00
## Amazon supported versions: 8 and 11
2020-10-22 14:01:35 -04:00
$Version = "11"
2020-07-31 12:44:03 -04:00
## Get the correct URL
2020-10-22 14:01:35 -04:00
If ( Is64bit ) { $URL = "https://corretto.aws/downloads/latest/amazon-corretto-${Version}-x64-windows-jdk.msi" }
Else { $URL = "https://corretto.aws/downloads/latest/amazon-corretto-${Version}-x86-windows-jdk.msi" }
2019-11-11 19:22:39 -05:00
## Install Amazon Corretto
2020-10-22 14:01:35 -04:00
Install-Program -Path "msiexec.exe" -Arguments "/i ${URL} /qn /norestart"