Skip to content

Commit a1907f5

Browse files
Use Install-WinUtilWinget function instead of choco
1 parent be41505 commit a1907f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/public/Invoke-WPFFixesWinget.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function Invoke-WPFFixesWinget {
1010
# Install Choco if not already present
1111
try {
1212
Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo"
13-
Install-WinUtilChoco
14-
Start-Process -FilePath "choco" -ArgumentList "install winget -y --force" -NoNewWindow -Wait
13+
Write-Host "==> Starting Winget Repair"
14+
Install-WinUtilWinget -Force
1515
} catch {
1616
Write-Error "Failed to install winget: $_"
1717
Set-WinUtilTaskbaritem -state "Error" -overlay "warning"

0 commit comments

Comments
 (0)