Microsoft VCTools offline install fails

It's fucking 2025 already, and installing this stupid Microsoft VCTools still fails. So fucking stupid!

vs_buildtools.exe --layout D:\VSOfflineLayout --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --includeRecommended --lang en-US
D:\VSOfflineLayout\vs_setup.exe --noWeb --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --includeRecommended --lang en-US

First, please consider using more toned down language.

Second, you haven't included the error message you get, just the command.

Third, the rust project does not provide this, it is something Microsoft provides. Though as I understand it on Windows Rust needs this installed.

8 Likes

I don't think Rust can do much about this, since that's an installer provided by Microsoft, and I bet it has licensing requirements that forbid remixing it into a different product.

You could use the -gnu toolchain instead of -msvc. It should be able to work without Visual Studio (although you may have issues with compatibility with C deps and other tools that assume MSVC).

3 Likes

https://developercommunity.visualstudio.com/t/vs-2019-unable-to-install-offline/664198

It’s because the official offline installation guide is missing a certificate, which causes the installation to fail.

I don’t know if VS2022 has fixed this issue, but it still exists in VS2026 Build Tools. It’s an installation problem — the very first critical step in using the software — and it still hasn’t been resolved. Such sluggishness is truly something only Microsoft could pull off. This is a serious bug, a very serious one, yet it’s being treated so lightly. The people responsible for developer relations are doing a terrible job.

1 Like