From 9f08b82e7dd506d35786f970de251c6a72489e0b Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 19 Nov 2024 16:13:50 +0000 Subject: [PATCH] Improve installation error handling --- get-xpipe.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/get-xpipe.ps1 b/get-xpipe.ps1 index 24d2cbe7c..d102cd413 100644 --- a/get-xpipe.ps1 +++ b/get-xpipe.ps1 @@ -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 + } } }