if you still have the photoshop cs2 installation files, reinstall it. that should fix the dll error and allow you to properly uninstall.
if you don't have your cs2 installation files, go ahead and download the enterprise ps cs2 version and install over your current installation.