C:\WINDOWS\system32>choco install visualstudio2017-workload-vctools
Chocolatey v0.10.15
Installing the following packages:
visualstudio2017-workload-vctools
By installing you accept licenses for the packages.
Progress: Downloading visualstudio2017-workload-vctools 1.3.2... 100%
visualstudio2017-workload-vctools v1.3.2 [Approved]
visualstudio2017-workload-vctools package files install completed. Performing other installation steps.
The package visualstudio2017-workload-vctools wants to run 'ChocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a
ERROR: Unable to detect any supported Visual Studio product. You may try passing --installPath or both --productId and --channelId parameters.
The install of visualstudio2017-workload-vctools was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017-workload-vctools\tools\ChocolateyInstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- visualstudio2017-workload-vctools (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017-workload-vctools\tools\ChocolateyInstall.ps1'.
See log for details.发布于 2021-03-04 19:27:59
使用choco upgrade -y visualstudio2019-workload-vctools
发布于 2021-01-23 08:50:39
看起来你的可视化工作室安装程序已经过时了。
尝试升级安装程序
"C:\Program (X86)\MicrosoftVisualStudio\Installer\vs_installer.exe“
然后(作为管理员)
visualstudio2017-workload-vctools
巧克力升级-y
发布于 2021-07-02 09:32:20
尝试使用“以管理员身份运行”打开CMD或PowerShell,并运行choco upgrade -y visualstudio2019-workload-vctools。
这解决了我的问题。
https://stackoverflow.com/questions/65185384
复制相似问题