Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the Visual Studio Build Tools installer return immediately without installing anything?

I'm trying to follow the example for installing Visual Studio Build Tools in a container. I'm trying to figure out why the installation isn't working like I expect. I cannot even start the container that is "built" with the components I think I want; it fails to run, saying The system cannot find the path specified.. I want to start the base image and run the installer myself, so I can see what is going on. Here is what I start with:

FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe

Then I try manually running the command in the example:

C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools

This command returns immediately without doing anything. What is going on?

like image 301
John Freeman Avatar asked Jul 06 '19 22:07

John Freeman


People also ask

Why is Visual Studio installer not installing?

Deleting the Visual Studio Installer files and then rerunning the bootstrapper solves some update failures. Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata. Close the Visual Studio Installer. Delete the Visual Studio Installer installation directory.

How do I stop Visual Studio installer from updating?

Disable updating of all extensions in Tools | Options | Environment | Extensions and Updates. Uninstall Visual Assist. Exit Visual Studio. Run the .exe installer of a version of Visual Assist you are qualified to run.

Why is my Visual Studio installer stuck?

Go to Windows Update to check if there are any pending Windows Updates, check for updates to apply the latest Windows updates, ensure that all critical and recommended Windows Updates are installed and completed, then reboot system. 6.

Where does Visual Studio build tools install?

If you installed to the default location, you can paste: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.


1 Answers

It's a window app so control returns immediately. That's why our example instructions at https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 use "start /wait" (batch). Please let me know if those instructions don't work for you.

like image 144
Heath Avatar answered Oct 04 '22 00:10

Heath