Install the DirectX Web Setup – it restores missing DX9 libraries even on Windows 11.

Since you are looking for the setup, here is the safest way to get the game running on a modern PC: