上QQ阅读APP看书,第一时间看更新
Install Chocolatey for Windows
Chocolatey is a CLI-based package manager for Windows, which can be used for automated software installation. To install Chocolatey on Windows, you will need to run an elevated command shell:
- Launch the Start menu
- Start typing in PowerShell
- You should see Windows PowerShell Desktop App as a search result
- Right-click on Windows PowerShell and select Run as Administrator
- This will trigger a User Account Control (UAC) warning; select Yes to continue
- Execute the following command in PowerShell to install the Chocolatey package manager:
PS> Set-ExecutionPolicy AllSigned; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- Verify your Chocolatey installation by executing choco
- You should see a similar output, as shown in the following screenshot:
Successful installation of Chocolatey
All subsequent Chocolatey commands must also be executed from an elevated command shell. Alternatively, it is possible to install Chocolatey in a non-administrator setting that doesn't require an elevated command shell. However, this will result in a non-standard and less secure development environment, and certain applications installed through the tool may still require elevation.
For more information, refer to: https://chocolatey.org/install.