The Registry script for modifying the default programfilesdir path found on the Internet:
Regedit4
[HKEY_LOCAL_MACHINE/software/Microsoft/Windows/CurrentVersion]
"Programfilesdir" = "E: // Program Files"
"Commonfilesdir" = "E: // program files // common files"
It is said on the Internet that modifying this path may cause some problems. At that time, when I installed Office 2007 today, I always prompted
Windows Installer ServiceOne or more protected Windows files cannot be updated.
Solution:
Run fp40ext in the i386 directory on the Windows installation disc. decompress the cab file and copy it to "C:/program files/common files/Microsoft shared/Web Server Extensions/40/bin". Then install office2007 and there will be no error.
From the solution, I thought that the installation of Office 2007 may need to read the file from commonfilesdir. before copying the file, I compared the content in programfilesdir and the changed folder on drive C, some files are missing from the custom folder. After copying the files, the installation is normal.
In this case, we recommend that you do not modify the commonfilesdir path when modifying programfilesdir to prevent similar problems. However, this conclusion has not been tested. Let's make your own decisions.