Only install choco if needed

This commit is contained in:
Marterich
2024-05-06 19:31:21 +02:00
parent 2354645b47
commit 7de3bbe1ff
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
}