Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

" choco install visualstudio2017-workload-vctools " Fails Error: The install of visualstudio2017-workload-vctools was NOT successful

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.
like image 545
RakeshP-0304 Avatar asked Dec 07 '20 16:12

RakeshP-0304


4 Answers

Use choco upgrade -y visualstudio2019-workload-vctools

like image 50
Shubham Shekhaliya Avatar answered Oct 21 '22 21:10

Shubham Shekhaliya


looks like your visualstudio installer is out of date.

try to upgrade installer

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe"

then (as administrator)

choco upgrade -y visualstudio2017-workload-vctools

like image 39
oleg Avatar answered Oct 21 '22 21:10

oleg


Try opening CMD or PowerShell with "Run as Administrator" and run choco upgrade -y visualstudio2019-workload-vctools.

This resolved my issue.

like image 4
Yogeesh B S Avatar answered Oct 21 '22 19:10

Yogeesh B S


As other people suggested, running this command solved it... at least for me: choco upgrade -y visualstudio2019-workload-vctools

I'll add one thing and it's that you may need to close and open PowerShell while doing so.

like image 1
tms8bltrn Avatar answered Oct 21 '22 20:10

tms8bltrn