The Direct X error should be solved by doing this.
You'll have to navigate to the DirectX Folder in your Battlefield folder.
Mine is in -
E:\Program Files (x86)\Origin Games\Battlefield 4\__Installer\directx\redist and run DXSetup from that list.
Yours may be In C:\ if you have only one storage device.