Only install choco if needed (#1943)

This commit is contained in:
Martin Wiethan
2024-05-10 06:13:57 +02:00
committed by GitHub
parent 1c80af1aca
commit cc02facb11
4 changed files with 8 additions and 3 deletions

View File

@ -7,7 +7,8 @@ function Invoke-WPFFixesWinget {
.DESCRIPTION
BravoNorris for the fantastic idea of a button to reinstall winget
#>
# Install Choco if not already present
Install-WinUtilChoco
Start-Process -FilePath "choco" -ArgumentList "install winget -y --force" -NoNewWindow -Wait
}