Follow these steps to resolve the issues with the upgrade process. You need to have Administrator privileges on the system to perform these steps.
1. Reboot the machine where TDM Portal has been installed.
2. Delete the remnant services manually:
To delete remnant services, at the Windows Command prompt type: SC DELETE <servicename>
3. Delete the CA TDM Portal folder (default location is "C:\Program Files\CA\CA Test Data Manager Portal").
4. Run the TDM portal 4.0 setup again.