5

I recently installed Windows 10 on my laptop, which has a 18 GB SSD and a 300 GB HDD. Although installing the OS on the SSD worked out okay, since the setup of office 2016 doesn't allow the specification of a install location, I'm in quite a pickle. Leaving office on my SSD isn't an option, since there's only roughly 500MB of disk space left that way.

Any idea how I could install office on another drive?

deemel
  • 223

7 Answers7

5

My research turned up, that it is in fact NOT possible to change the installation directory for office.

Quoting the references for the Office Deployment Tool:

You cannot customize the installation location for Click-to-Run for Office 365 products. Click-to-Run can only be deployed to the system drive which is typically drive C.

Source

Since this question is hereby definetly answered, I'd suggest removing the duplicate tag. I suppose this answer might save others the time I took to find this out.

deemel
  • 223
3

You cannot change the installation location, but you can move it.

That is to say you can tell the computer that the office install directory should be redirected elsewhere.

Command Prompt, administrator mode

Here, I am telling windows that the Office directory should be STORED On D:\ drive. Substitute your path as desired. And yes, you must have two Microsoft Office directories.. just because.. Microsoft.

Uninstall office if it is there. First, you must create the directory where Office would be installed.

>md "c:\Program Files (x86)\Microsoft Office\"

>md ""c:\Program Files\Microsoft Office\"

Then you "make a link" (mklink) between the directories.

>mklink /J "d:\programs_x86\Microsoft Office\" "c:\Program Files (x86)\Microsoft Office\"
Junction created for d:\programs_x86\Microsoft Office\ <<===>> c:\Program Files (x86)\Microsoft Office\

>mklink /J "d:\programs_64\Microsoft Office\" "c:\Program Files\Microsoft Office\"
Junction created for d:\programs_64\Microsoft Office\ <<===>> c:\Program Files\Microsoft Office\

Note that you cannot link to a new directory that already exists.

>mklink /J "d:\programs_64\Microsoft Office\" "c:\Program Files\Microsoft Office\"
Cannot create a file when that file already exists.
2

Frustratingly, Office 2016 has obfuscated the installer options to "help" people. This thread explains how you can set the options manually including desired components, install location, etc.

0

You can change the Install Directory, but it is not suggested. You can only do this by changing the default ProgramFilesDir in the registry. Please consider all that this will do. For example, it will break your installation of Google Chrome and probably many other things. There is probably a reason that page has this posted at the top:

Microsoft does not support changing the location of the Program Files folder by modifying the ProgramFilesDir registry value

CEPA
  • 341
0

I have what I think is a suitable workaround, but it requires a bit of time.

GBee what you think: Go to Control Panel > System and Security > Storage Spaces

Here you can form a virtual merged drive between your super fast SSD and that old clunker HDD (or SSHD), but there are some disadvantages and advantages to consider.

1) First you have to be able to offload a backup copy of everything on those drives to someplace secure (like a $100 5TB external drive in my case) 2) That takes a lot of TIME - I did it overnight.

3) Now you have to get rid of everything on your SSD - I did a windows restore, chose to delete all my files (since I had them on an internal SSHD and on that external as a backup)

4) IMPORTANT: When you do that windows re-install, don't include the drive where you saved your files!!! (I even disconnected that external HDD incase I screwed up here.)

5) Now you can create a new pool and storage space which will delete all data from the HDD you are adding to boost your SSD's space.

6) You might lose the ability to insure what goes on the SSD (like gamers who want to run really fast might wish) But Windows operating files should all be there.

7) You might be able to install all future apps to the HDD by selecting a folder that is physically located there.

8) Why bother with all this? There's another solution that might work very well for you. Have you considered the fact that a new windows install only takes up 19.7GB? (That's with the HP bloatware on my SSD). Immediately after you re-install windows do this: Settings > Storage > Change Where New Content is Saved under each type of new content is a drop down box. Just make all those point to your HDD. It may or may not redirect your Office 365 new install (hope you kept that product key!). Either way, there's room for 1-3GB of office 365 on the SSD. Especially since all your new files are on the HDD.

I'm sure there are other drawbacks to making the shared storage space that I didn't mention, but that solution and #8 above sure seem a lot easier to me than having to edit the registry, especially knowing that the next office 365 update could break your registry 'fix'.

0

For me, this worked. Look in "C:\Program Files" to see where Microsoft Office is stored with the command:

dir "c:\Program Files\Microsoft*"

In my case it was in "C:\Program Files\Microsoft Office" and "C:\Program Files\Microsoft Office 15". You'll need those names below to create links to another drive.

Uninstall Office 365 and those directories will be deleted.

Replace these directories with junction links that point those directories to another drive (D: for example) using mklink command (as administrator):

mklink /J "C:\Program Files\Microsoft Office" "D:\Program Files\Microsoft Office"
mklink /J "C:\Program Files\Microsoft Office 15" "D:\Program Files\Microsoft Office 15"

Use dir to view the created links:

dir "C:\Program Files\Micro*"

In my case it looked like so:

Directory of c:\Program Files

04/13/2021 10:45 AM <JUNCTION> Microsoft Office [E:\Program Files\Microsoft Office] 04/13/2021 10:45 AM <JUNCTION> Microsoft Office 15 [E:\Program Files\Microsoft Office 15]

Create the directories on the other drive.

mkdir "D:\Program Files\Microsoft Office"
mkdir "D:\Program Files\Microsoft Office 15"

Now, reboot and go through the MS Office 365 install again.

Best wishes folks.

AJM
  • 500
BorgBubba
  • 34
  • 2
0

To install Office on another drive:

  • copy the "Program Files" and "Program Files (x86)" folders to other drive.

  • search for 'regedit' (Windows+S).

  • open it.

  • from directory panel go to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion.

  • Replace the paths of "ProgramFilesDir" and "ProgramFilesDir (x86)" with paths of folders you copied.

note: it worked for me but may not work for you, so be careful do not delete sth.