You can refer to the below thread.
How do you change the default Installation Directory in Windows 8
That changes the default program install location. But by hacking that location, you have deflected the location from the default where all current programs are installed. That could cause some problems.
Another approach is to use "Symbolic links". This is a windows technique that tells windows to look in another physical location when it wants to look in a specific location. IE actually look in D:\Officeinstall when it wants to find something in C:\program
files\microsoft office ....
Here are some instructions:
*********Description of how using Symbolic Link has been done **********
https://answers.microsoft.com/en-us/office/forum/office_2016-office_install/office-16-drive-location/0c62927c-721a-4629-b283-5809c8e16f2c
365 Alternate Install Location - Symbolic Links
I have received independent confirmation that using symbolic links will successfully redirect Office 365 installations to an alternate location.
How to: Move Installed Programs to Another Drive in Windows 7, 8, 10https://www.infopackets.com/news/9789/how-move-installed-programs-another-drive-windows-7-8-10
Use a Program **** called "Junction" made by SysInternals to create the Symbolic Links for you. Also read the comment for a different idea.
Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK -http://www.mydigitallife.info/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/
Complete Guide to Symbolic Links (symlinks) on Windows or Linux
http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Be more efficient and better organized with the MKLink symbolic link tool -http://www.techrepublic.com/blog/windows-and-office/be-more-efficient-and-better-organized-with-the-mklink-symbolic-link-tool/
http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html
<snip>
Palcouk replied on Oct 26, 2015:
Office click to run products install to the win drive, you cannot do a custom install, its an all or nothing install
There is a method, if you are prepared to delve in. Modify the following steps according to your specific situation:
I too was wanting to move my Office 365 install to a different drive. My main goal was to put it on a RamDisk to make it very quick to load.
·
I had created a RamDisk of 5GB, using http://www.radeonramdisk.com/software_downloads.php . The new drive was mounted as drive O:
·
Install Office 365 as normal, on the C drive.
·
Make a note of the two main Office directories:
C:\Program Files\Microsoft Office 15
C:\Program Files (x86)\Microsoft Office
·
Empty the Recycle bin before continuing.
·
Run Task Manager
·
Stop anything Microsoft Office related.
·
Delete both of the above directories
·
Open a CMD prompt, and run these commands:
MKLINK /J "C:\Program Files\Microsoft Office 15" "O:\Program Files\Microsoft Office 15"?
MKLINK /J "C:\Program Files (x86)\Microsoft Office" "O:\Program Files (x86)\Microsoft Office"
·
This created junction points for each directory on the C drive that Office installs to, and point them to the O drive. So the OS thinks its going to C drive for those folders, but in reality its going to the O drive.
·
Go to the recycle bin and restore all the deleted files. The files then appeared on the O drive.
·
Save the RamDisk to an image file (so it gets loaded when windows starts)
·
Reboot
After reboot, when I open an office app, its so fast you can't time it!
You don't have to do the ramdisk portion, its the junction's that make it work.
I have 32GB of ram, and am only using about 5gb on average, so having a ramdisk makes sense for me.
RamDisks are about 8 to 10 times faster than SSD but are volatile memory, so it needs to be saved to disk if you don't want to lose it.
The change to "Click To Run" installations is all about making support easier for MS and the big corporate customers. By removing all user control they reduce the number of things that can be messed up. Unfortunately, back in 2010 (actually earlier) when
they started the process of switching to CTR there were no tablets with 32GB SSD drives. 99% of computers came with a single, large HD.