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
+2 -4
View File
@@ -6,12 +6,10 @@ $INSTALLER='https://dev.emberkom.com/emberkom/management-scripts/raw/branch/mast
## Set installer args
If ( $URL )
{
Write-Output "LiquidFiles target server: ${URL}"
LogMsg "LiquidFiles target server: ${URL}"
$INSTALLER_ARGS = "REGKEYSCRIPT=`"BaseUrl=${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 }
Install-Program -Path "msiexec.exe" -Arguments "/i ${INSTALLER} /qn /norestart ${INSTALLER_ARGS}"