I have the similar problem of DirectX 9. So, i tried the following way to solve it. Try yourself and it will solve your problem, as it solved my problem too.
1. Right click the game setup file and select "Properties".
2. Click the "Compatibility" tab.
3. Now select "Windows 2000" in "Run this program in compatibility mode for" textbox.
4. Make sure the checkbox is checked.
Then try to install the game again, and report me soon.