Can't install/uninstall/repair directx

So, out of nowhere, my games stopped working, sony vegas freezes, and a lot of other problems wich all say that the reason is Directx. So I've tried to reinstall it, but each time gives me the error "An internal system error occurred. Please refer to DXError.log and DirectX.log in your Windows folder to determine problem".
The DXError.log says:

[08/28/20 15:12:51] module: dxupdate(Jan 24 2007), file: dxupdate.cpp, line: 2223, function: RegisterDLL

    Failed API:        LoadLibraryEx()
    Error:        (193) - %1 is not a valid Win32 application.



    Unable to load C:\WINDOWS\system32\xactengine2_0.dll.

--------------------
[08/28/20 15:12:51] module: dxupdate(Jan 24 2007), file: dxupdate.cpp, line: 5815, function: DirectXUpdateInstallPlugIn

    RegisterDllFromSection() failed.

--------------------
[08/28/20 15:12:51] module: dsetup32(Jan 24 2007), file: dxupdate.cpp, line: 280, function: CSetup::InstallPlugIn

    DirectXUpdateInstallPlugIn() failed.

--------------------
[08/28/20 15:12:51] module: dsetup32(Jan 24 2007), file: setup.cpp, line: 1701, function: CSetup::SetupForDirectX

    InstallPlugIn() failed.

DirectX.log says:

08/28/20 15:48:45: infinst: C:\WINDOWS\system32\d3dx10_33.dll have been installed already.
08/28/20 15:48:45: infinst: Target file: 'C:\WINDOWS\system32\D3DCompiler_33.dll'
    Target file is Version 9.18.904.15
    Source file is Version 9.18.904.15
08/28/20 15:48:45: infinst: Currently C:\WINDOWS\system32\D3DCompiler_33.dll is newer than the one being installed.
08/28/20 15:48:45: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\xinput1_3_x64.inf [Install_Driver]
08/28/20 15:48:45: infinst: Target file: 'C:\WINDOWS\system32\xinput1_3.dll'
    Target file is Version 9.18.944.0
    Source file is Version 9.18.944.0
08/28/20 15:48:45: infinst: C:\WINDOWS\system32\xinput1_3.dll have been installed already.
08/28/20 15:48:46: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\d3dx10_34_x64.inf [DefaultInstall]
08/28/20 15:48:46: infinst: Target file: 'C:\WINDOWS\system32\d3dx10_34.dll'
    Target file is Version 9.19.949.46
    Source file is Version 9.19.949.46
08/28/20 15:48:46: infinst: C:\WINDOWS\system32\d3dx10_34.dll have been installed already.
08/28/20 15:48:46: infinst: Target file: 'C:\WINDOWS\system32\D3DCompiler_34.dll'
    Target file is Version 9.19.949.46
    Source file is Version 9.19.949.46
08/28/20 15:48:46: infinst: Currently C:\WINDOWS\system32\D3DCompiler_34.dll is newer than the one being installed.
08/28/20 15:48:47: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\d3dx10_35_x64.inf [DefaultInstall]
08/28/20 15:48:47: infinst: Target file: 'C:\WINDOWS\system32\d3dx10_35.dll'
    Target file is Version 9.19.949.1104
    Source file is Version 9.19.949.1104
08/28/20 15:48:47: infinst: C:\WINDOWS\system32\d3dx10_35.dll have been installed already.
08/28/20 15:48:47: infinst: Target file: 'C:\WINDOWS\system32\D3DCompiler_35.dll'
    Target file is Version 9.19.949.1104
    Source file is Version 9.19.949.1104
08/28/20 15:48:47: infinst: Currently C:\WINDOWS\system32\D3DCompiler_35.dll is newer than the one being installed.
08/28/20 15:48:49: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\d3dx9_36_x64.inf [DefaultInstall]
08/28/20 15:48:49: infinst: Target file: 'C:\WINDOWS\system32\d3dx9_36.dll'
    Target file is Version 9.19.949.2111
    Source file is Version 9.19.949.2111
08/28/20 15:48:49: infinst: C:\WINDOWS\system32\d3dx9_36.dll have been installed already.
08/28/20 15:48:50: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\d3dx10_36_x64.inf [DefaultInstall]
08/28/20 15:48:50: infinst: Target file: 'C:\WINDOWS\system32\d3dx10_36.dll'
    Target file is Version 9.19.949.2009
    Source file is Version 9.19.949.2009
08/28/20 15:48:50: infinst: C:\WINDOWS\system32\d3dx10_36.dll have been installed already.
08/28/20 15:48:50: infinst: Target file: 'C:\WINDOWS\system32\D3DCompiler_36.dll'
    Target file is Version 9.19.949.2111
    Source file is Version 9.19.949.2111
08/28/20 15:48:50: infinst: Currently C:\WINDOWS\system32\D3DCompiler_36.dll is newer than the one being installed.
08/28/20 15:48:51: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\d3dx10_37_x64.inf [DefaultInstall]
08/28/20 15:48:52: infinst: Target file: 'C:\WINDOWS\system32\d3dx10_37.dll'
    Target file is Version 9.19.949.2185
    Source file is Version 9.19.949.2185
08/28/20 15:48:52: infinst: C:\WINDOWS\system32\d3dx10_37.dll have been installed already.
08/28/20 15:48:52: infinst: Target file: 'C:\WINDOWS\system32\D3DCompiler_37.dll'
    Target file is Version 9.22.949.2248
    Source file is Version 9.22.949.2248
08/28/20 15:48:52: infinst: Currently C:\WINDOWS\system32\D3DCompiler_37.dll is newer than the one being installed.
08/28/20 15:48:53: infinst: Installing C:\Users\Lorenzo\AppData\Local\Temp\DX29A6.tmp\XAudio2_0_x64.inf [DefaultInstall]
08/28/20 15:48:53: infinst: Target file: 'C:\WINDOWS\system32\XAudio2_0.dll'
    Target file is Version 9.22.1284.0
    Source file is Version 9.22.1284.0
08/28/20 15:48:53: infinst: C:\WINDOWS\system32\XAudio2_0.dll have been installed already.

Hi Lorenzo. I'm Greg, an installation specialist, 10 years awarded Windows MVP, and Volunteer Moderator, here to help you.

Troubleshoot with DirectX Diagnostic Tool:
https://www.thewindowsclub.com/diagnose-and-tro...

Other troubleshooting steps:
https://www.thetechlounge.com/blog/directx-trou...
https://windowsreport.com/directx-errors-window... (Avoid ad links, especially avoid Restoro ad!)

https://www.youtube.com/watch?v=Dp41XT-Li4M


I hope this helps. Feel free to ask back any questions and keep me posted. If you'll wait to rate whether my post resolved your problem, I will keep working with you until it's resolved.

______________________________________________
Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.
____________________________
Retired 2023, thirteen year daily forums volunteer, Windows MVP 2010-2020

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 18, 2025 Views 369 Applies to: