You can't just drag programs from C: to D:.
When you install a program, an entry is usually made into the system "registry", which contains critical pieces of data about your application like where it's installed, the directory that installation log files can be found, what modules and...