Installing Managed DirectX 9 on Win8

Lior Ohana asked:

As part of a project I’m involved in, we’re installing DirectX9 (including managed DirectX) components as part of our installation software.
Before installing the DirectX we’re installing .NET4.

When we moved to Win8 we started to see some issues with the DX installation and we’re finally found the root cause which is that managed DirectX9 components are not installed when there is no .NET framework between v1 to v3.5 installed.

We can install the .NET as part of our installation (in addition to .NET4) but there are 2 problems:
1. On Win8 you cannot run the .NET installation executable, only via ‘Add Features’ API.
2. Installing via the ‘Add Features’ requires an internet connection for downloading the .NET which is not feasible in our system.

Any ideas?

My answer:


If you truly have absolutely no Internet connectivity, you can install .NET 3.5 using DISM and a copy of the Windows installation media.

For example:

dism /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:sourcessxs

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.