I was able to track the cause of the problem.It happened when I installed Tweak Xp 4 Pro I made some changes to the settings including the changing of program installation directory then all the files in C:\Program Files got transferred to D:\Program Files and after installing sp2 something happened to those files.Now what should I do inorder to get WMP back.