Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org) Getting latest version of the Chocolatey package for download. Not using proxy. Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.0.0. Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.0.0 to C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip Not using proxy. Extracting C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall Installing Chocolatey on the local machine WARNING: Setting ChocolateyInstall Environment Variable on USER and not SYSTEM variables. This is due to either non-administrator install OR the process you are running is not being run as an Administrator. Creating ChocolateyInstall as an environment variable (targeting 'User') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco.
时间: 2024-04-03 08:32:09 浏览: 275
igniteui-docfx:针对所有可用组件和功能的Ignite UI for Angular主题
这是一个 PowerShell 脚本,用于在 Windows 操作系统中安装 Chocolatey 软件包管理器。Chocolatey 可以帮助用户方便地安装和管理各种 Windows 软件包。这个脚本会首先设置 PowerShell 执行策略,然后下载并安装 Chocolatey。在安装过程中,脚本会创建一个名为 ChocolateyInstall 的环境变量,并将其设置为 C:\ProgramData\chocolatey。需要注意的是,如果你的计算机上没有启用 PowerShell 脚本执行,需要先运行 Set-ExecutionPolicy RemoteSigned 命令来启用脚本执行权限。
阅读全文