Add argument "--force" to winget reinstall

Some users reported not being able to reinstall winget without this argument.
This commit is contained in:
Yuri Gabriel
2024-02-02 13:23:43 -03:00
parent 4588ff86c1
commit b331460340
+1 -1
View File
@@ -8,6 +8,6 @@ function Invoke-WPFFixesWinget {
BravoNorris for the fantastic idea of a button to reinstall winget
#>
Start-Process -FilePath "choco" -ArgumentList "install winget -y" -NoNewWindow -Wait
Start-Process -FilePath "choco" -ArgumentList "install winget -y --force" -NoNewWindow -Wait
}