https://bugs.winehq.org/show_bug.cgi?id=56644
Bug ID: 56644 Summary: Visual Studio 2022 Community Edition doesn't install (exits before showing installer window) Product: Wine Version: 9.8 Hardware: x86-64 URL: https://visualstudio.microsoft.com/vs/community/ OS: Linux Status: NEW Keywords: download, Installer Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: Debian
Created attachment 76417 --> https://bugs.winehq.org/attachment.cgi?id=76417 terminal output
austin@debian:~/Downloads$ du -sh VisualStudioSetup.exe 3.9M VisualStudioSetup.exe austin@debian:~/Downloads$ sha1sum VisualStudioSetup.exe 5d0923c690a40a5113a0dec506c14a412b4ee2e4 VisualStudioSetup.exe
Looking at the output, I initially suspected it was a wine-mono issue. Installing `winetricks dotnet472` doesn't help, so it's not that.
https://bugs.winehq.org/show_bug.cgi?id=56644
--- Comment #1 from Austin English austinenglish@gmail.com --- Created attachment 76418 --> https://bugs.winehq.org/attachment.cgi?id=76418 terminal output (after dotnet472)
https://bugs.winehq.org/show_bug.cgi?id=56644
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=56644
Torxed winehq@hvornum.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@hvornum.se
--- Comment #2 from Torxed winehq@hvornum.se --- 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
However, there appears to be an issue with the Mono package not being able to verify certificates correctly:
[014c:0011][2024-05-10T16:01:34] Package signature verification threw exception: Mono.Security.X509.X509Store.get_Crls, for path: C:\ProgramData\Microsoft\VisualStudio\Packages_bootstrapper\vs_installer\ktmrs2k.lg0\vs_installer.opc" [014c:0011][2024-05-10T16:01:34] Error 0x80096004: Package signature verification threw exception: Mono.Security.X509.X509Store.get_Crls, for path: vs_installer.opc"
The log should be in "$WINEPREFIX/drive_c/users/$(whoami)/Temp/dd_bootstrapper_*"
https://bugs.winehq.org/show_bug.cgi?id=56644
--- Comment #3 from Austin English austinenglish@gmail.com --- Created attachment 76453 --> https://bugs.winehq.org/attachment.cgi?id=76453 bootstrapper log
0168:0001][2024-05-13T19:26:08] Error 0x80131523: General Failure. Message:CreateInstalledObjectsInfo assembly:<unknown assembly> type:<unknown type> member:(null) Callstack: at (wrapper managed-to-native) MS.Internal.PtsHost.UnsafeNativeMethods.PTS.CreateInstalledObjectsInfo(MS.Internal.PtsHost.UnsafeNativeMethods.PTS/FSIMETHODS&,MS.Internal.PtsHost.UnsafeNativeMethods.PTS/FSIMETHODS&,intptr&,int&)
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.