while I was developing windows service using visual studio 2010, I came a cross an issue that prevent me from continue working. I wasn’t able to uninstall or install my service any more. I was using windows installation project within Visual Studio on windows 7 PC.
I tried so many things with no luck. I even tried to use the command prompt commands trying to uninstall/install the service; but nothing could solve the issue. till I found a tool from MS that could successfully scan and fix the problem for me. The tool took like 10 min scanning my machine; but at the end it fixed the issue for me. here is the link to the tool http://support.microsoft.com/mats/Program_Install_and_Uninstall
Please let me know if this tool fix the issue for you as well or not?