Hi
Windows 7 would have direct x installed from the windows 7 DVD
What version of direct x were you installing and where did you get it from?
Normally you get updates from microsoft or on the driver disk of a graphics card
Maybe kaspersky AV thought it was infected with malware and maybe it was
http
/en.m.wikipedia.org/wiki/DirectX
Regards
Mike Barnes