MySql Server Configuration wizard not responding on Windows 7

For some R&D work related to Entity Framework and MySQL I installed MySQL on windows 7. I couldn’t work on this for some time, so naturally I forgot the password. So I thought to reinstall it. So I uninstalled it and try to install it again. The installation was successful but the configuration wizard was not responding for hours.
So I googled for it and found the solution, but it was not the exact answer to my problem. There were very complex solutions as well. Following are the steps that O followed.

    1. Completely uninstall MySQL
    2. Remove the MySQL folder under the hidden folder “ProgramData”
    3. Remove the MySQL folder under the “ProgramFiles”

One of the solutions required to restart the computer after going through the above steps, but I didn’t restarted the computer. Then I tried again with the installation, and the installation went fine.
The issue behind this is, when you uninstall MySQL it will not remove all the files and these files are in an inconsistent state after uninstallation. During the installation the configuration wizard will access these files and try to modify them. Due to the current state of these files the configuration wizard can’t alter any of these files and the wizard will go to “Not Responding” state.