Despite the previous responses, you can install the Visual Studio Build Tools
and Visual Studio
so long as you have the executable installer.
For example, given a school computer administered profile "p3", and the file "C:\Users\p3\Downloads\vs_BuildTools.exe", open a terminal and run:
PS C:\Users\p3\Downloads> .\vs_BuildTools.exe --layout PATH/TO/INSTALL
The --layout
option lets you specify an install directory. Whereas running the executable without this flag will attempt to install your program in a privileged directory, you can provide a path owned by your account to avoid admin interaction.
Edit: I wanted to install the MSVC build toolchain and only that component to build a Rust project with said target triple. If you seek only the build tools as well, check out this handy python script.