mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-12-17 17:55:28 +00:00
Fix invalid Repair-WingetPackageManager
This commit is contained in:
parent
94d7bb719e
commit
ff0ca400ed
@ -52,6 +52,7 @@ function Install-WinUtilWinget {
|
||||
|
||||
# Check if Windows version supports Repair-WinGetPackageManager (24H2 and above)
|
||||
if ([System.Environment]::OSVersion.Version.Build -ge 26100) {
|
||||
Install-Module -Name Microsoft.WinGet.Client -Force -ErrorAction Continue
|
||||
Repair-WinGetPackageManager -Force -Latest -Verbose
|
||||
# Verify if repair was successful
|
||||
$wingetCmd = Get-Command winget -ErrorAction Stop
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user