It can happen because certain programs prevent the reinstallation of the latest version or because the upgrading process failed upon upgrading to/reinstalling Windows 10.
First, you should check what version of DirectX your OS is using. To do this, press Windows +R keys on the keyboard, type dxdiag in the Run box and hit enter.
If DirectX 12 is not listed, and since there is no stand-alone package for this version, we recommend the following solutions.
How do I reinstall DirectX 12?
1. Check for updates
Usually, Windows is updated automatically. But if any updates are missing, this action should solve the problem. Wait for the process to finish and make another attempt to see the DirectX version.
2. Run the DirectX End-User Runtime Installer
Reinstall DirectX using the DirectX End-User Runtime Web Installer available in the Microsoft Download Center to try and restore missing files, if any.
Check once again for updates and see if the problem is fixed. If you’re still having trouble with a proper installation for the graphics component, take a look at this article that lists a few alternative options.
3. Use the SFC tool for missing files
- Type Command Prompt in the taskbar and click on Run as administrator.
- Type sfc /scannow and hit Enter.
- Wait for the results.
This scan might take some minutes. SFC is a built-in tool that should repair any corrupted files in the system or install missing ones, after faulty OS installation.
4. Perform a clean boot
- Type System Configuration in the taskbar and select Run as administrator.
- On the Services tab, select Hide all Microsoft services, and then select Disable for all.
- On the Startup tab, open Task Manager, and Disable all items.
- Close the Task Manager and click OK in the System Configuration window.
- Restart your device and reinstall DirectX using the DirectX End-User Runtime Web Installer download link as mentioned before and see if it helps.
This should show if any other installed program is preventing DirectX 12 from running, so you can uninstall it from Control Panel.
Afterward, set your device to boot normally by opening the System Configuration as shown previously, and in the General tab, check Normal startup, then OK.