major change to override Write-Error func
This commit is contained in:
@@ -9,9 +9,9 @@ $INSTALLER = Download-File -URL $URL
|
||||
# Install the app
|
||||
Write-Output "Installing latest version of Simple In/Out from ""${INSTALLER}"""
|
||||
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart ALLUSERS=1" -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
|
||||
# Delete the installer
|
||||
Write-Output "Deleting downloaded installer from ""${INSTALLER}"""
|
||||
Try { Remove-Item -Path $INSTALLER -Force -ErrorAction SilentlyContinue }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
Reference in New Issue
Block a user