When trying to install BF 4 on my Windows 7 machine I got the following message after a few seconds:
There is no percentage showing, and then, origin get stuck on this:
The only way to close Origin is through Windows Task Manager (Ctrl+Shift+Esc)
Go to C:\Program Files (x86)\Origin Games\Battlefield 4\ __Installer\directx\redist
Delete all the contents of the folder except for the following files: DSETUP.dll dsetup32.dll DXSETUP.exe
Install the game again.
Also tried to manually install the DXSETUP.exe but the window appears then vanishes very quickly.