-
-
Save TotallyNotEmilio/e59e80886115ae065d249aa458b1ea04 to your computer and use it in GitHub Desktop.
This file contains 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
$testchoco = powershell choco -v | |
if(-not($testchoco)){ | |
Write-Output "Seems Chocolatey is not installed, installing now" | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
} | |
else{ | |
Write-Output "Chocolatey Version $testchoco is already installed" | |
} | |
$Packages = 'googlechrome', 'winrar', 'notepadplusplus', 'microsoft-teams', 'nordvpn', 'spotify', 'steam-client', 'discord' | |
ForEach ($PackageName in $Packages) | |
$PackageNameInstalled = $false if (Get-Command $PackageName.exe -ErrorAction SilentlyContinue) { | |
Write-Output "Seems $PackageName is not installed, installing now" | |
choco install $PackageName -y | |
} | |
Else ($PackageNameInstalled = $true) | |
{ | |
Write-Output "$PackageName is already installed" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment