Skip to content

Instantly share code, notes, and snippets.

@luisrenemas
Created August 10, 2016 01:10
Show Gist options
  • Save luisrenemas/dff8667335c61f832a676051db425909 to your computer and use it in GitHub Desktop.
Save luisrenemas/dff8667335c61f832a676051db425909 to your computer and use it in GitHub Desktop.
@echo off
SET DIR=%~dp0%
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "((new-object net.webclient).DownloadFile('https://chocolatey.org/install.ps1','install.ps1'))"
%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%install.ps1' %*"
SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment