Skip to content

Commit

Permalink
Improve installation error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Nov 19, 2024
1 parent 9403ebf commit 9f08b82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions get-xpipe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 9f08b82

Please sign in to comment.