mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-23 08:00:23 +00:00
Improve installation error handling
This commit is contained in:
parent
9403ebf204
commit
9f08b82e7d
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ function Uninstall {
|
|||
) -join [Environment]::NewLine
|
||||
Write-Host $message
|
||||
$cimResult = Invoke-CimMethod -InputObject $cim -Name Uninstall
|
||||
if ($cimResult.ReturnValue) {
|
||||
Write-Host "Uninstallation failed: Code $($cimResult.ReturnValue)"
|
||||
exit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue