Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
From the error you've shared, it looks like the DirectX June 2010 installer is failing during one of its legacy .NET Framework checks rather than because DirectX itself is missing. Windows 11 already includes the latest DirectX version and the June 2010 package is primarily used to install older runtime components that some older games still depend on.
As a first step, I'd suggest checking for any Windows component corruption by running the following commands in an elevated Command Prompt:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
You can also verify that .NET Framework 3.5 is enabled by running:
DISM /Online /Get-FeatureInfo /FeatureName:NetFx3
If you haven't already, try downloading a fresh copy of the DirectX End-User Runtime (June 2010), extracting it to a local folder (for example, C:\DXRedist) and then running DXSETUP.exe as Administrator from that folder.
If the installation continues to fail, could you please share the complete contents of C:\Windows\DXError.log along with the last 50–100 lines from C:\Windows\DirectX.log? Those logs may provide more detailed information about what is causing the setup to stop.
I hope this helps and I'll be happy to take a closer look once the logs are available.
If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.