Basically, I have a separate drive for my OS and a separate drive for installing all of my programs.
If you know in the name of the Photoshop folder then you can create a symbolic link on drive C: that lets Windows believe that the program is on C: even though it's on D:. Post again if you need detailed instructions.