From a7f8cc38d95d767a8e4cb1b12bcafd2729c7680e Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Tue, 25 Feb 2025 22:49:25 +0100 Subject: [PATCH] Fix winget version check for versions 1.10 and higher --- Win11Debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 6bab61d..acbcd34 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -1064,7 +1064,7 @@ function DisplayCustomModeOptions { # Check if winget is installed & if it is, check if the version is at least v1.4 -if ((Get-AppxPackage -Name "*Microsoft.DesktopAppInstaller*") -and ((winget -v) -replace 'v','' -gt 1.4)) { +if ((Get-AppxPackage -Name "*Microsoft.DesktopAppInstaller*") -and ([int](((winget -v) -replace 'v','').split('.')[0..1] -join '') -gt 14)) { $global:wingetInstalled = $true } else {