I have found the solution, most post about similar issues pointed to using the web client for direct x to install, however that refused to work for me. So instead, Microsoft also provides a non online download and after downloading and running the setup file for directx, it worked correctly.
Link: https://www.microsoft.com/en-us/download/confirmation.aspx?id=8109