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

5

11
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.
Reflation answered 7/12, 2020 at 16:18 Comment(1)
I tried to intsall node.js and got this errorReflation
P
10

Use choco upgrade -y visualstudio2019-workload-vctools

Prager answered 4/3, 2021 at 19:27 Comment(1)
Run CMD as AdministratorPrager
U
6

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

Uptrend answered 23/1, 2021 at 8:50 Comment(2)
I got this ERROR: Unable to detect any supported Visual Studio product. You may try passing --installPath or both --productId and --channelId parameters. The upgrade of visualstudio2017-workload-vctools was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017-workload-vctools\tools\ChocolateyInstall.ps1'. See log for details.Reflation
Restarted my PC in-between steps to clear out idle installation instance. This removed the error I was seeing when trying to run 'choco upgrade -y visualstudio2017-workload-vctools'. Tyvm!Audrieaudris
S
4

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

This resolved my issue.

Stephniestepladder answered 2/7, 2021 at 9:32 Comment(0)
C
3

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.

Cobweb answered 25/10, 2021 at 21:59 Comment(0)
D
0

You'll have to change the year on the command to match the version os VS installed. In my case I used: choco upgrade -y visualstudio2022-workload-vctools

Delogu answered 13/2 at 2:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.