Created
May 30, 2020 06:31
-
-
Save Erisa/14e9dafe17657c692f2d935da43ecf44 to your computer and use it in GitHub Desktop.
wgi: install multiple winget packages at once
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$numOfArgs = $args.Length | |
for ($i=1; $i -le $numOfArgs; $i++) | |
{ | |
$target = $($args[$i-1]) | |
write-host "Trying: $($target)" | |
winget install $args[$i-1] | |
write-host "Finished trying: $($target)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment