Skip to content

Instantly share code, notes, and snippets.

@ro31337
Last active August 12, 2016 18:11
Show Gist options
  • Select an option

  • Save ro31337/64b9287c73cd78af7a480432957406ad to your computer and use it in GitHub Desktop.

Select an option

Save ro31337/64b9287c73cd78af7a480432957406ad to your computer and use it in GitHub Desktop.
# Right way to install Chocolatey - always specify version to avoid breaking changes!
$ChocoInstallPath = "$env:SystemDrive\ProgramData\Chocolatey\bin"
$env:chocolateyVersion = '0.9.10.3' # <-- HERE
if (!(Test-Path $ChocoInstallPath)) {
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment