Can't install game. repeatedly getting DirectX install error
I downloaded the game and upon install received a DirectX error and could not install. 3 more attempts, 4 more NO GOs. Deleted DX temp file folders and I get the same issue. Running latest version of SX and version 347.52 Nvidia drivers. If anyone can figure it out or has a fix, post it. Here is my error file:
--------------------
[03/18/15 00:40:15] module: dxupdate(Mar 30 2011), file: dxupdate.cpp, line: 1272, function: CabCallback
Failed API: DeleteFile()
Error: (5) - Access is denied.
Unable to delete C:\Users\NIGHTS~1\AppData\Local\Temp\DXB77F.tmp\d3dx9_31.dll.
--------------------
[03/18/15 00:40:16] module: dxupdate(Mar 30 2011), file: dxupdate.cpp, line: 5738, function: DirectXUpdateInstallPlugIn
Failed API: SetupIterateCabinet()
Error: (1224) - The requested operation cannot be performed on a file with a user-mapped section open.
Unable to iterate through C:\PROGRA~2\ORIGIN~1\BFH\__INST~1\directx\redist\Oct2006_d3dx9_31_x64.cab. The file may be damaged.
--------------------
[03/18/15 00:40:16] module: dsetup32(Mar 30 2011), file: dxupdate.cpp, line: 280, function: CSetup::InstallPlugIn
DirectXUpdateInstallPlugIn() failed.
--------------------
[03/18/15 00:40:16] module: dsetup32(Mar 30 2011), file: setup.cpp, line: 1727, function: CSetup::SetupForDirectX
InstallPlugIn() failed.
--------------------
[03/18/15 00:40:17] module: dsetup32(Mar 30 2011), file: dsinline.h, line: 302, function: DXRemoveFile
Unable to remove C:\Users\NIGHTS~1\AppData\Local\Temp\DXB77F.tmp.
--------------------
[03/18/15 00:40:17] module: dsetup32(Mar 30 2011), file: inline.h, line: 331, function: CleanUpDirectory
Unable to remove: C:\Users\NIGHTS~1\AppData\Local\Temp\DXB77F.tmp\d3dx9_31.dll which is locked, reason = 5.
--------------------
- OP try the method listed in this video. It solved this problem for me on Hardline, BF1942 and BF2142.
https://www.youtube.com/watch?v=3umR5vLcPwo