7 lines
No EOL
261 B
PowerShell
7 lines
No EOL
261 B
PowerShell
# 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."
|
|
} |