This error is caused by a DirectX installation failure. Usually some DX files are already installed, but the installer cannot overwrite them. In my case, some of the files in \windows\SystemWOW64 were accidentally encrypted, and the installer failed to overwrite
them. I had to manually delete those files for the installer to succeed. The cause may be different for you, but using the following steps should help figure out which DX files are causing the problem.
1. Install DirectX End-User Runtimes (June 2010 refreshed) from
You will be asked to choose the directory to place the extracted CAB files.
2. Run dxsetup.exe from the directory in step 1.
3. Installation failure will likely occur. Look at \Windows\Logs\DXError.log and find the reported .INF file in the error log.
For example: [07/13/11 20:36:35] module: dxupdate(Mar 30 2011), file: dxupdate.cpp, line: 2056, function: ExecuteInf Failed API: SetupInstallFromInfSection() Error: (5) - Access is denied. Unable to install C:\Users\Foo\AppData\Local\Temp\DXA1BC.tmp\d3dx9_31_x86.inf:[x64_install]. The file may be damaged.
4. .INF files are Setup information files, which are used to install the files listed in them. In this example,
d3dx9_31_x86.inf is the .INF file. First, try to determine the .DLL file installed by that INF by using at the name of the INF file and looking for a DLL with similar name in \windows\systemwow64, if using 64 bit Windows, or in \windows\system32,
if using 32 bit Windows. In many cases, the name of the INF should tell you which DLL it installs, as shown in the examples below: xinput1_3_x86.inf installs xinput1_3.dll d3dx9_33_x86.inf installs d3dx9_33.dll d3dx9_31_x86.inf installs d3dx9_31.dllIf you can't tell from the name which DLL's install failed, you will need to look at the CAB file. Look in
\Windows\Logs\DirectX.log to determine which CAB file was processed before the error. Then go to the directory you chose in step 1, and open that CAB file in File Explorer by double clicking it. That will open a File Explorer window showing the
files in the CAB, including an INF file. Open the INF file, by right-clicking on the file, and choosing
Extractfrom the context menu. The INF file will have entries like the following which indicate the DLL that it installs:
[DirectX_System] D3DX9_38.dll[DirectX_SysWOW64] D3DX9_38.dll
5. The install likely failed because that DLL could not be overwritten by the installer. Determine why it could not be overwritten, and delete it manually from \windows\systemwow64 or \windows\system32.
6. Go to step 2 and repeat until installation succeeds.
1 person was helped by this reply
Did this solve your problem?
Sorry this didn't help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.