major change to override Write-Error func
This commit is contained in:
@@ -11,7 +11,7 @@ If ( IsAdmin )
|
||||
$UninstallProgram = $UninstallString -replace ' -maintain plugin', ''
|
||||
Write-Output "Running: ""${UninstallProgram}"" -uninstall"
|
||||
Try { Start-Process "${UninstallProgram}" -ArgumentList "-uninstall" -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
}
|
||||
Else { Write-Output "Adobe Flash Player is not installed" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user