Skip to content

Instantly share code, notes, and snippets.

@valdecircarvalho
Created October 23, 2019 03:14
Show Gist options
  • Save valdecircarvalho/a9c41dd716820d669fc278afd7049f29 to your computer and use it in GitHub Desktop.
Save valdecircarvalho/a9c41dd716820d669fc278afd7049f29 to your computer and use it in GitHub Desktop.
example of script to install softwares using chocolatey
#InstallPagadges
write-output "Installing softwares with Cholatey..."
$applist = @(
"chocolateygui",
"chocolatey-core.extension",
"googlechrome",
"firefox",
"7zip.install",
"notepadplusplus.install",
)
foreach($app in $applist) {
Write-Output "Installing" $app "..."
Start-Sleep -s 1
choco install $app -y --acceptlicense --force --no-progress --log-file="$env:USERPROFILE\Documents\workdir\temp\choco-install.log"
RefreshEnv
Start-Sleep -s 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment