https://bugs.winehq.org/show_bug.cgi?id=51099
Bug ID: 51099 Summary: Visual Studio Installer refuses to run with unelevated token in quiet mode Product: Wine-staging Version: 6.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: w@zeroitlab.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
This patchset: https://github.com/wine-staging/wine-staging/commit/811467bf6a4c43de2485b37a... breaks the second stage of Visual Studio Installer (needed for products: Visual Studio 2015, Visual Studio 2017, Visual Studio 2019, Visual Studio Build Tools 2015, Visual Studio Build Tools 2017, Visual Studio Build Tools 2019)
Reproduction:
Skip first stage installer blocked by another bug:
wget https://aka.ms/vs/16/release/installer -O installer.zip unzip installer.zip mkdir "~/.wine/drive_c/Program Files (x86)/Microsoft Visual Studio" mv Contents "~/.wine/drive_c/Program Files (x86)/Microsoft Visual Studio/Installer"
Try invoking installer:
wine "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" /finalizeInstall install --locale en-US --productId Microsoft.VisualStudio.Product.BuildTools --channelId VisualStudio.16.Release --channelUri "https://aka.ms/vs/16/release/channel" --quiet --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended
After it fails check log at `C:\Users\user\Temp`, latest one starting with dd_installer:
[0108:0001][2021-05-05T14:22:56] Commands with --quiet or --passive should be run elevated from the beginning.