major change to override Write-Error func
This commit is contained in:
@@ -7,9 +7,9 @@ $INSTALLER = Download-File -URL $URL
|
||||
## Install the app
|
||||
Write-Output "Installing latest version of SpecsIntact from ""${INSTALLER}"""
|
||||
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${INSTALLER} /qn /norestart" -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