scripts/powershell/installwinget.ps1

7 lines
261 B
PowerShell
Raw Normal View History

# Install Winget script
if (!(Get-Command winget -ErrorAction SilentlyContinue)) {
Write-Output "Winget is not found, installing..."
iex "& { $((iwr -useb https://aka.ms/install-winget).Content) }"
} else {
Write-Output "Winget already installed."
}