diff --git a/Install-AmazonCorretto.ps1 b/Install-AmazonCorretto.ps1 index f2876cd..e5f12eb 100644 --- a/Install-AmazonCorretto.ps1 +++ b/Install-AmazonCorretto.ps1 @@ -1,7 +1,16 @@ -## Get the correct URL +param( + [int]$Version=11 +) + +## Supported versions: 8 and 11 + +## Convert int to string +[string]$Version = $Version.ToString() + +## 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' } +{ $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 \ No newline at end of file diff --git a/Install-LiquidFilesOutlookAgent.bat b/Install-LiquidFilesOutlookAgent.bat deleted file mode 100644 index 7930e73..0000000 --- a/Install-LiquidFilesOutlookAgent.bat +++ /dev/null @@ -1,8 +0,0 @@ -@echo off - -SET INSTALL_URL=https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/resources/LiquidFiles_Admin_2.0.108.msi - -IF NOT [%1] EQU [] SET REG_SETTINGS=%REG_SETTINGS%BaseUrl=%1; - -REM Install the plugin -msiexec.exe /i %INSTALL_URL% /qn /norestart REGKEYSCRIPT="%REG_SETTINGS%" \ No newline at end of file diff --git a/Install-LiquidFilesOutlookAgent.ps1 b/Install-LiquidFilesOutlookAgent.ps1 new file mode 100644 index 0000000..bf5fee8 --- /dev/null +++ b/Install-LiquidFilesOutlookAgent.ps1 @@ -0,0 +1,17 @@ +param( + [string]$URL, + [string]$INSTALLER='https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/resources/LiquidFiles_Admin_2.0.114.msi' +) + +## Set installer args +If ( $URL ) +{ + Write-Output "LiquidFiles target server: ${URL}" + $INSTALLER_ARGS = 'REGKEYSCRIPT="BaseUrl={0};"' -f $URL +} +Else { $INSTALLER_ARGS = '' } + +## Run the installer +Write-Output "msiexec.exe /i ${INSTALLER} /qn /norestart ${INSTALLER_ARGS}" +Try { Start-Process -FilePath "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart ${INSTALLER_ARGS}" -Wait } +Catch { Write-Output $_.Exception.Message } \ No newline at end of file diff --git a/Start-LinuxUpdate.sh b/Start-LinuxUpdate.sh index d3d196e..4729f36 100644 --- a/Start-LinuxUpdate.sh +++ b/Start-LinuxUpdate.sh @@ -37,5 +37,5 @@ elif [ -n "$(command -v yum)" ]; then elif [ -n "$(command -v dnf)" ]; then process_fedora else - echo "Package update command not found!" + echo "Package manager not found!" fi \ No newline at end of file diff --git a/resources/LiquidFiles_Admin_2.0.108.msi b/resources/LiquidFiles_Admin_2.0.114.msi similarity index 57% rename from resources/LiquidFiles_Admin_2.0.108.msi rename to resources/LiquidFiles_Admin_2.0.114.msi index 1337e83..a3852d5 100644 Binary files a/resources/LiquidFiles_Admin_2.0.108.msi and b/resources/LiquidFiles_Admin_2.0.114.msi differ