mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Fix winget version check for versions 1.10 and higher
This commit is contained in:
@@ -1064,7 +1064,7 @@ function DisplayCustomModeOptions {
|
|||||||
|
|
||||||
|
|
||||||
# Check if winget is installed & if it is, check if the version is at least v1.4
|
# 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
|
$global:wingetInstalled = $true
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user