https://bugs.winehq.org/show_bug.cgi?id=56644
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to Torxed from comment #2)
It appears you can get a bit further by silently installing it, which would mean to skip the UI part of the installation.
I know this isn't the buildtools specifically, but this is what I used for buildtools:
wine cmd /S /C start /w vs_BuildTools.exe \ --quiet \ --noweb \ --norestart \ --installPath "%ProgramFiles%\Microsoft Visual Studio\2022\BuildTools" \ --add Microsoft.Component.MSBuild \ --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 \ --add Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre \ --add Microsoft.VisualStudio.Component.Windows11SDK.22621
Thanks for the suggestion. I tried: winetricks -q dotnet472 wine VisualStudioSetup-2022.exe \ --quiet \ --noweb \ --norestart \ --installPath "%ProgramFiles%\Microsoft Visual Studio\2022" \ --add Microsoft.Component.MSBuild
The installer exited without error, but the 2022 directory doesn't exist.
However, there appears to be an issue with the Mono package not being able to verify certificates correctly:
I opened bug 56668 for that.