How To Reinstall, Repair Or Uninstall DirectX (Windows 7)


What is DirectX?

Microsoft DirectX is the most important software for handling multimedia content in Windows Operating System. Video games depend on DirectX so heavily that even the smallest error or corrupted library within the DirectX Runtime Components may result in game crashes.

DirectX related problems usually trigger error prompts at the beginning of the program’s execution, making it unavailable to run any further.


To avoid these problems, make sure your DirectX version is always up to date.

Whenever you install a new game, pay close attention to what installation has to offer because it will probably ask you to install/upgrade DirectX. You should always accept this, and if your version is already up to date, installer will skip the DirectX installation and finish installation normally.


Reinstall, repair or delete DirectX

Whatever you need to do with your local DirectX installation, it is certainly that you are trying to fix some errors or problems caused by damaged or deleted DirectX files. The best way to repair any DirectX related problem is to install the latest version from Microsoft official download site:

Download a DirectX End-User Runtime Web Installer (dxwebsetup.exe) to your local disk and run it. If it goes through the installation and finishes normally, it means that your previous version wasn’t up to date, and that should fix your problems. But if installation finishes saying:

DirectX setup has determined that a newer or equivalent version of DirectX has been installed already. No installation is necessary.

,then you will have to trick the installer to overwrite your local version. This can be done by modifying a registry key where DirectX saves its version number. It is stored under:


Set the key value to and try running installer again. It will detect an older version and proceed with installation.

If you don’t want to mass around with registry keys, you can simply download and run this file and it will modify DirectX version number for you: DirectX Version Number Modifier


Most common errors related to DirectX

The program can’t start because D3DCOMPILER_43.dll is missing from your computer. Try reinstalling the program to fix this problem.

The application was unable to start correctly (0xc000007b). Click OK to close the application.

An internal system error occured. Please refer to DXError.log and DirectX.log in your Windows folder to determine problem.

DirectX function “CreatePixelShader for (null)” failed with E_INVALIDARG

DirectX function “GetDeviceRemovedReason” failed with DXGI_ERROR_DEVICE_HUNG

Fatal DirectX error! Code:3 Result: 0x887A0002: DXGI_ERROR_NOT_FOUND.
The game will now exit. Try starting the game with /failsafe if the problem persist.

An unknown DirectX error has occured and game cannot start.
Please make sure your video card is using the latest video drivers from the manufacturer.

It was not possible to create the Direct3D rendering device. You may need to reinstall DirectX and/or update drivers for your graphic card.

Could not find any compatible Direct3D devices

Error 25: A critical error has occured while initializing Direct3D.

ERROR: Unable to initialize Direct3D. Check the README file and ensure your system meets minimum specifications.

Fatal Error: Direct3D driver returned error code(E_OUTOFMEMORY) while creating a texture.

Error creating Direct3D 9 Graphical engine

Failed to create Direct3D device object: hr=D3DERR_INVALIDCALL

DirectX function “GetDeviceRemovedReason” failed with DXGI_ERROR_DEVICE_HUNG

DirectX(R) encountered an unrecovarable error. Check the DirectX(R) FAQ for possible solutions.

Please make sure you have DirectX 8.1 or higher installed. Also verify that your video card meets the minimum requirements.


Alternative titles:

Repair Broken DirectX Installation
Fix DirectX Errors
Unable to Reinstall DirectX
Overwrite Current Version of DirectX
Registry Hack for DirectX Reinstallation
Change DirectX Version Number

  1. Installing directx runtime dlls and somie other odds and sods. Hopefully this should work

  2. Excellent goods from you, man. I’ve understand your stuff previous to and you’re just extremely wonderful. I really like what you’ve acquired here, really like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it smart. I can’t wait to read far more from you. This is actually a wonderful site. Cheers

  3. I’ve been browsing online more than three hours today, yet I never found any
    interesting article like yours. It is pretty worth enough for me.
    Personally, if all site owners and bloggers made good content as you did, the internet will be
    a lot more useful than ever before.