winutil/functions/public/Invoke-WPFFixesWinget.ps1
Yuri Gabriel b331460340 Add argument "--force" to winget reinstall
Some users reported not being able to reinstall winget without this argument.
2024-02-02 13:23:43 -03:00

13 lines
309 B
PowerShell

function Invoke-WPFFixesWinget {
<#
.SYNOPSIS
Fixes Winget by running choco install winget
.DESCRIPTION
BravoNorris for the fantastic idea of a button to reinstall winget
#>
Start-Process -FilePath "choco" -ArgumentList "install winget -y --force" -NoNewWindow -Wait
}