You can't just move programs to the other drive, or partition, almost all have entries that point to the location of files in a certain place, if you just move the files, the program won't work.
It's like moving to a different town and expecting the post office to find you there automatically.
You need to move the files back to where they were, uninstall the program, and then install it on the D: drive.