Sometimes its simply the problem of OS incase you used restore point or virus. I had similar problem and what fixed me was to install win 7 freshly and installing other components through web setup from crack.exe
I suppose for XP and vista you need to check service packs and miscellaneous, troubleshooting can be painful.