Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: vcredist6sp6 always fails since 67.5 (installer exits with 43)

Open mirfalltnixein opened this issue 1 month ago • 2 comments

Describe the bug

Since 67.5, installing the vcredist6sp6 dependency always fails ("One or more steps failed for vcredist6sp6. Command exited with status 43.").

The installer does its job: it puts atl, mfc42, msvcp60, msvcirt, olepro32, asycfilt, comcat and stdole2.tlb into syswow64. It can't replace Wine's in-use builtin msvcrt.dll and oleaut32.dll, though, so it exits with 43:

0108:err:setupapi:SetupDefaultQueueCallbackW copy error 32 L"C:\\users\\steamuser\\AppData\\Local\\Temp\\IXP000.TMP\\msvcrt.dll" -> L"C:\\windows\\system32\\msvcrt.dll"
0108:err:setupapi:SetupDefaultQueueCallbackW copy error 32 L"C:\\users\\steamuser\\AppData\\Local\\Temp\\IXP000.TMP\\oleaut32.dll" -> L"C:\\windows\\system32\\oleaut32.dll"
Command exited with status 43.

Before 67.5 the exit code was ignored. Since #4904 (fb8cf1fb), install_exe fails on any code outside INSTALLER_SUCCESS_CODES and the step's success_codes, and DependencyManager.install stops at the first failed step. So the manifest's four override_dll steps (asycfilt, comcat, mfc42, mfc42u → native,builtin) never run: a fresh bottle has none of them in user.reg afterwards. vcredist6sp6 also isn't added to Installed_Dependencies, so it shows as not installed and fails again on every retry.

A possible fix is success_codes: [43] on the install_exe step of Essentials/vcredist6sp6.yml in bottlesdevs/dependencies (unchanged since 2022). Older Bottles versions ignore the key. I can open that PR if you want it.

To Reproduce

  1. Create a new bottle (I used bottles-cli new --bottle-name vc6sp6 --environment custom --arch win64 --runner ge-proton11-11).
  2. Install the vcredist6sp6 dependency.
  3. It fails with status 43, and the mfc42/mfc42u/asycfilt/comcat overrides are missing.

All other vcredist dependencies (2005 to 2022, vcredist6) install fine in the same kind of bottle.

Package

Flatpak from Flathub

Distribution

CachyOS (Flatpak 1.18.4)

Debugging Information

Official Package: true
Version: '67.5'
DE/WM: /usr/share/wayland-sessions/plasma.desktop
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
    Vulkan: true
Kernel:
    Type: Linux
    Version: 7.3.1-1-cachyos
Bottles_envs: null

Troubleshooting Logs

STEP: Downloading VS6SP6.EXE...
STEP: Extracting vcredist6sp6.exe from cabinet…
STEP: Running vcredist6sp6.exe…
0108:err:setupapi:SetupDefaultQueueCallbackW copy error 32 L"C:\\users\\steamuser\\AppData\\Local\\Temp\\IXP000.TMP\\msvcrt.dll" -> L"C:\\windows\\system32\\msvcrt.dll"
0108:err:setupapi:SetupDefaultQueueCallbackW copy error 32 L"C:\\users\\steamuser\\AppData\\Local\\Temp\\IXP000.TMP\\oleaut32.dll" -> L"C:\\windows\\system32\\oleaut32.dll"
Command exited with status 43.
RESULT: False 'One or more steps failed for vcredist6sp6. Command exited with status 43.'

Additional context

Found while testing all vcredist dependencies for #4920 (not the same problem).

mirfalltnixein avatar Nov 03 '26 18:11 mirfalltnixein

Correction: the manifest has nine override_dll steps (asycfilt, comcat, mfc42, mfc42u, msvcirt, msvcp60, msvcrt, oleaut32, olepro32), not four. None of them are applied after the failure.

The fix is in bottlesdevs/dependencies#384, tested through a local repository.

mirfalltnixein avatar Nov 03 '26 18:11 mirfalltnixein

Merged bottlesdevs/dependencies#384. The VC6 SP6 recipe now accepts status 43 so installation continues through its DLL overrides and Bottles records it as installed. This is limited to that recipe; other installer failures are still reported. The existing missing mfc42u file is a separate recipe limitation.

mirkobrombin avatar Nov 04 '26 14:11 mirkobrombin