C:\> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(‘https://chocolatey.org/install.ps1‘))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
或者:
PS:\>iex ((new-object net.webclient).DownloadString(‘https://chocolatey.org/install.ps1‘))
原文:http://www.cnblogs.com/sprinng/p/3851014.html