Close the XAMPP control panel after making sure all the XAMPP components are stopped and none of them are set to start as a service.
Uninstall the previous apache mysql and php by using the Windows Control Panel > Add Remove Programs
Then, after you delete the previous installations directories if any remain, restart your computer and check that none of those services are running by looking in the Task Manager
and before you try and start XAMPP.
To get the Task Manager
right click on the Taskbar
and select Task Manager
from the context menu.
Click on the Processes
tab and look for any instances of Apache
If you find any, then you have some services that have not been removed from the registry and they need to be removed or they will only interfere with XAMPP again.
XAMPP needs exclusive use to it's components default ports for it to run without problems.
To remove those stuck service:
Open a command prompt:
Click on start
on the Taskbar
Click on Run...
Remove stuck Apache service:
Type at the command prompt sc delete apache2
on your keyboard
Remove stuck MySQL service:
Type at the command prompt sc delete mysql
They should do the trick for you.
(Just to add to the above list:
Remove if you get a stuck FileZilla FTP service:
type at a command prompt sc delete "FileZilla Server"
Now open your XAMPP Control Panel or DTX and start the components you want and set them to run as a service if you prefer.
BTW - sc
stands for sc.exe
service control and will delete any stray services that won't shut down by any normal means.
Microsoft explains the Service Controller Commands here
Take a look at the new DeskTopXampp
launch control posted by ridgewood
http://community.apachefriends.org/f/viewtopi ... 967#103967
launch control for XAMPP
is available here:
I highly recommend DTX.