So i recently got a laptop that had some problems fixed (the motherboard was replaced, its a thinkpad t14 gen 3) and i tried playing dark souls 3 on it but got an error saying "the code execution cannot proceed because..." and it listed some .dll files that were missing which were d3dx11_43.dll, d3dx9_43.dll, d3dcompiler_43.dll, and xinput1_3.dll
I then tried to install the missing directx files using dxwebsetup and i got the aforementioned error, i then tried to download it using DXSETUP with all the .cab files and i also got the same error. i then tried downloading with the directx development kit and it still didnt work. i then tried some other miscellaneous solutions that ultimately did not work.
I managed to fix the issue for dark souls 3, dark souls 2 and sekiro by placing the files needed inside the game folder. However, im still facing issues as a result of not being able to install these directx runtimes, such as not being able to use rivatuner statistics server to monitor performance, and (presumably) not being able to take screenshots or screen record with xbox game bar.
I have seen an in-place repair of windows 11 be listed as a solution for this on a similar thread, but i will only do it as a last resort since it may take a long time to do.