Follow this procedure.
1. Click Start --> Run (or Windows key + R)
2. Type regedit and click OK.
3. Navigate to key:
HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft Windows\ CurrentVersion4. Now you'll see on the right window "ProgramFilesDir" and double click it and modify data in this key by the new path for the installation folder. For example, change from C: to D: to change the partition.
5. Reboot your computer for change to take effect.