Choco install directx fails


Installing directx usiing chocolatey currently fails in the Windows envionment. I tried on my win 10 machine, and it is working which would seem to indicate that it’s not a problem with chocolatey or the directx package itself. You can find the output of the install below (excerpt from

Any help much appreciated! :slight_smile:

$ choco install -y directx

Chocolatey v0.10.11

Installing the following packages:


By installing you accept licenses for the packages.

Progress: Downloading directx 9.29.1974.20180606… 100%

directx v9.29.1974.20180606 [Approved]

directx package files install completed. Performing other installation steps.

Downloading directx

from ‘

Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\directx\9.29.1974.20180606\directx_Jun2010_redist.exe (95.63 MB).

Download of directx_Jun2010_redist.exe (95.63 MB) completed.

Hashes match.

Installing directx…

directx has been installed.

Installing directx…

ERROR: Running [“C:\ProgramData\chocolatey\lib\directx\tools\DXSETUP.exe” /silent ] was not successful. Exit code was ‘-9’. See log for possible error messages.

The install of directx was NOT successful.

Error while running ‘C:\ProgramData\chocolatey\lib\directx\tools\chocolateyInstall.ps1’.

See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.

See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).


  • directx (exited -9) - Error while running ‘C:\ProgramData\chocolatey\lib\directx\tools\chocolateyInstall.ps1’.

See log for details.

For me, choco install python3 in before_install hangs and fails.

What does the log say? (You’ll have to explicitly dump the content, for example, in after_failure.

I explicitely dumped the logs of chocolatey as you said ( but I could not find the root cause from the logs or any ways to fix it. Maybe someone else will spot something that I missed.