validate url before attempting to install

This commit is contained in:
2021-03-15 11:43:41 -04:00
parent f85262407c
commit 22d74a95d5
+6 -3
View File
@@ -2,6 +2,9 @@
$URL = 'https://download.adobe.com/pub/connect/updaters/meeting/11_0/ConnectApp11_2021_3_4.msi'
## Install Adobe Connect
LogMsg "Installing Adobe Connect from ${URL}"
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" -Wait }
Catch { LogErr $_.Exception.Message }
If ( IsURLValid $URL ) {
LogMsg "Installing Adobe Connect from ${URL}"
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart" -Wait }
Catch { LogErr $_.Exception.Message }
}
Else { LogMsg "URL is not valid: ${URL}" }