major change to override Write-Error func
This commit is contained in:
@@ -28,7 +28,7 @@ $ScriptArgs = "/ALL /QUIET /NOCANCEL"
|
||||
# Run the script
|
||||
Write-Output "Uninstalling all Click2Run versions of Office"
|
||||
Try { Start-Process "cscript.exe" -ArgumentList "//nologo ""${UninstallScript}"" ${ScriptArgs}" -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
|
||||
# Delete the downloaded script
|
||||
If ( Test-Path $UninstallScript ) {
|
||||
|
||||
Reference in New Issue
Block a user