Skip to content

Instantly share code, notes, and snippets.

@Chirishman
Last active December 21, 2016 18:13
Show Gist options
  • Save Chirishman/403b4dee648aea859d5ab4cec542547e to your computer and use it in GitHub Desktop.
Save Chirishman/403b4dee648aea859d5ab4cec542547e to your computer and use it in GitHub Desktop.
Basic Software Package
$packages = @(
    "notepadplusplus.install",
"7zip.install",
"GoogleChrome",
"Firefox",
"AdobeReader",
"Putty.install"
)
Install-Package -Name Chocolatey -Force -ProviderName chocolatey
$chocopath = (Get-Package chocolatey | ?{$_.Name -eq "chocolatey"} | Select @{N="Source";E={((($a=($_.Source -split "\\"))[0..($a.length - 2)]) -join "\"),"Tools\chocolateyInstall" -join "\"}} | Select -ExpandProperty Source)
& $chocopath "upgrade all -y"
choco install chocolatey-core.extension --force
choco uninstall mm-choco.extension --all-versions
$packages | %{choco install $_ --force -y}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment