Most older PC games around 1995-1998 that haven't been supported for newer DirectX or other GFX cards for ATI/AMD and nVidia. Mostly if you install an old PC game - that you didn't get from, usually comes with DirectX 1-9 installation, as well including Marcomedia Player (now owned by Adobe), Adobe Reader and QuickTime for Windows 95. Try out dgVoodoo 2 Glide & DirectX 1-7 legacy support tool; plus QuickTime Windows are no longer being updated by Apple, but you can now get QuickTime Pro for free and require the Serial Number to activate it.

If nothing else works, then try this link below if you have problems with your old apps or if you not all the DX dlls. However it maybe recommended to run in compatibly mode for the old D3D versions like DirectX v5.2 for Win95 apps, to test it before you try this download link.

For safe installations for Windows Vista/7/8 onwards legacy application support based on DirectX v9.0c, click below here:-

Important Notes -

The DirectX Versions above are offered for archival and/or reference purposes.
(those come in handy when building dedicated retro/legacy PC's or running Software that requires a certain DirectX Version)

DirectX can not be uninstalled by normal means!
Since DirectX commits significant changes to the installed Windows, it is recommended to Backup all Data before installation.
Either create a Restore Point with your OS or use equivalent Utility Software.
For a forced uninstallation of DirectX, the use of a 3rd party Software like DirectX Buster is required.

Current Windows versions already ship/install with their own DirectX, thus installation of an older Version than already installed is not normally possible.

But if you got VMware Player with Windows XP from your Windows 7 Pro or got any of those older Windows OS in VMware Player, you maybe best to use this VMware software as older DirectX could clog up your PC and it cannot be safely removed.