I'm trying to build a Docker image to run an Windows generated executable that requires vcrun2017 to be present. I'm running into the following error(s) trying to install vcrun2017
To note: I'm inside the docker image (dockerfile posted below) so that I can run the commands to test without having to wait 5 minutes for update to finish.
root@3d9a98a3c0d6:/# winetricks -q vcrun2017
------------------------------------------------------
Running Wine/winetricks as root is highly discouraged. See https://wiki.winehq.org/FAQ#Should_I_run_Wine_as_root.3F
------------------------------------------------------
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20190310-next - sha256sum: 908b1820d942393c188e4a714478b43f2d61f8ff8f914dcc0ee582a575241e56 with wine-4.0 and WINEARCH=win64
Executing w_do_call vcrun2017
Executing load_vcrun2017
------------------------------------------------------
Working around wine bug 37781
------------------------------------------------------
------------------------------------------------------
This may fail in non-XP mode, see https://bugs.winehq.org/show_bug.cgi?id=37781
------------------------------------------------------
Using native,builtin override for following DLLs: api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase vcomp140 vcruntime140
Executing wine regedit /S C:\windows\Temp\_vcrun2017\override-dll.reg
Executing wine64 regedit /S C:\windows\Temp\_vcrun2017\override-dll.reg
The operation completed successfully
Setting Windows version to winxp
Executing wine regedit /S C:\windows\Temp\_vcrun2017\set-winver.reg
Executing wine64 regedit /S C:\windows\Temp\_vcrun2017\set-winver.reg
------------------------------------------------------
Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/root/.wine terminate
------------------------------------------------------
Executing cd /root/.cache/winetricks/vcrun2017
Executing wine VC_redist.x86.exe /q
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
002a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002a:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
002a:fixme:advapi:DecryptFileW (L"C:\\users\\root\\Temp\\{404c9c27-8377-4fd1-b607-7ca635db4e49}\\", 00000000): stub
002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002c:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
002d:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002d:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0009:fixme:ole:CoInitializeSecurity (0x33f584,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
------------------------------------------------------
Note: command wine VC_redist.x86.exe /q returned status 120. Aborting.
------------------------------------------------------
An update: I've been manually able to install vcrun2017 once I'm inside the container, but that's no good as I want the build to be entirely automated.
I'd appreciate any suggestions at all to be able to just add the last commented out line in the dockerfile and have it install properly. Or any suggestions so that manual installation is not necessary