major logging overhaul, plus other fixes

This commit is contained in:
2020-10-22 14:01:35 -04:00
parent 77cf4d6276
commit 978373ebe2
27 changed files with 430 additions and 611 deletions
+6 -12
View File
@@ -1,16 +1,10 @@
param(
[int]$Version=11
)
## Supported versions: 8 and 11
## Convert int to string
[string]$Version = $Version.ToString()
. "C:\Users\dyoder\Emberkom\Data\Projects\development\management-scripts\Tools.ps1"
## Amazon supported versions: 8 and 11
$Version = "11"
## Get the correct URL
If ( Test-Path "${Env:ProgramFiles(x86)}" )
{ $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" }
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" }
## Install Amazon Corretto
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" -Wait
Install-Program -Path "msiexec.exe" -Arguments "/i ${URL} /qn /norestart"