Files
management-scripts/Install-AmazonCorretto.ps1
T
2020-05-22 14:35:46 -04:00

7 lines
366 B
PowerShell

## Get the correct URL
If ( Test-Path "${Env:ProgramFiles(x86)}" )
{ $URL = 'https://corretto.aws/downloads/latest/amazon-corretto-11-x64-windows-jdk.msi' }
Else { $URL = 'https://corretto.aws/downloads/latest/amazon-corretto-8-x86-windows-jdk.msi' }
## Install Amazon Corretto
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" -Wait