[Solved] How to Fix Microsoft Office Professional “Error 1327.Invalid Drive” During Setup

Error 1327.Invalid Drive is a setup error that occurs when the drive assigned for the program such as Microsoft Office, Autocad, Adobe, Arcgis, and Kaspersky installation is invalid because the installer is trying to complete the operation on a network location which is not mapped or the system folder is mapped that has the Reconnect at Logon checked.

[Solved] How to Fix Microsoft Office Professional "Error 1327.Invalid Drive" During Setup
[Solved] How to Fix Microsoft Office Professional “Error 1327.Invalid Drive” During Setup

In this case, you can resolve the error by mapping the network location that’s not configured using SUBST command to redirect to a correct drive letter or you can modify the LocalCacheDrive location manually via registry.

Content Summary

Solution 1: Remove the drive letter using subst command
Solution 2: Map the unmatched drive letter using net use command
Solution 3: Redirect the operation using subst command
Solution 4: Modify the drive letter via Registry Editor
Solution 5: Verify related Registry key
Solution 6: Create a new local administrator account
Solution 7: Disconnect network drive

Solution 1: Remove the drive letter using subst command

Disconnecting the drive letter should allow the installer to proceed without generating an error message.
Step 1: Press Windows key + R to open the Run dialog box.

Step 2: Type cmd and press Ctrl + Shift + Enter to open elevated CMD prompt. When you are prompted by the UAC (User Account Control) window, click on Yes to grant administrator access.

Step 3: Type the following command and press Enter to map the drive that is causing the error:
subst /D [Driver Letter]

Step 4: Type exit and press Enter.

Step 5: Perform software installation.

Solution 2: Map the unmatched drive letter using net use command

Step 1: Press Windows key + R to open the Run dialog box.

Step 2: Type cmd and press Ctrl + Shift + Enter to open elevated CMD prompt. When you are prompted by the UAC (User Account Control) window, click on Yes to grant administrator access.

Step 3: Type the following command and press Enter to map the drive that is causing the error:
net use DRIVE: PATH
* Replace the DRIVE and PATH applicable in your particular scenario.

Step 4: Close the elevated Command Prompt and restart the computer.

Step 5: Perform software installation.

Solution 3: Redirect the operation using subst command

Step 1: Press Windows key + R to open the Run dialog box.

Step 2: Type cmd and press Ctrl + Shift + Enter to open elevated CMD prompt. When you are prompted by the UAC (User Account Control) window, click on Yes to grant administrator access.

Step 3: Type the following command and press Enter to map the drive that is causing the error:
subst X: Y:\
* Replace X with the placeholder for the non-existent drive; Replace Y with the placeholder for OS drive. For example, if you’re encounter Error 1327.Invalid Drive F:\ and Windows is installed on C drive, the correct the subst command would be subst F: C:\

Step 4: Close the elevated Command Prompt and restart the computer.

Step 5: Perform software installation.

Solution 4: Modify the drive letter via Registry Editor

Step 1: Press Windows key + R to open the Run dialog box.

Step 2: Type regedit and press Enter to open the Registry Editor. When you are prompted by the UAC (User Account Control) window, click on Yes to grant administrator access.

Step 3: Navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\.

Step 4: Enter the subfolder associated with office installation (E.G. 15.0, 16.0, 11.0, etc.), then select the Delivery key.

Step 5: Double-click on LocalCacheDrive at the right-hand section.

Step 6: Set the Value Data to OS drive (normally C drive) and press OK to save the changes.

Step 7: Navigate to the following location: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders.

Step 8: In the right pane, search for values in the Data column in each entry that list the drive letter referenced in the error message.

Step 9: Right-click on the entry and select Modify, change the value of those entries to point to OS drive (normally C drive) and verify that the folder path referenced in the key-value exists.

Step 10: Repeat the same steps for the following folder:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Step 11: Close the Registry Editor and restart the computer.

Step 12: Perform software installation.

Solution 5: Verify related Registry key

This error message is generated by the Microsoft Installer (MSI) when one of the paths set in the registry for the account performing the operation is incorrect or does not exist. In order to resolve this issue, verify the following registry keys and fix any of the values that are not correct. Paths may vary on some systems.
Step 1: Press Windows key + R to open the Run dialog box.

Step 2: Type regedit and press Enter to open the Registry Editor. When you are prompted by the UAC (User Account Control) window, click on Yes to grant administrator access.

Step 3: Navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders. The following is an example of what these registry values should look:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
"Common Administrative Tools"="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Administrative Tools"
"Common AppData"="C:\\Documents and Settings\\All Users\\Application Data"
"Common Desktop"="C:\\Documents and Settings\\All Users\\Desktop"
"Common Documents"="C:\\Documents and Settings\\All Users\\Documents"
"Common Favorites"="C:\\Documents and Settings\\All Users\\Favorites"
"Common Programs"="C:\\Documents and Settings\\All Users\\Start Menu\\Programs"
"Common Start Menu"="C:\\Documents and Settings\\All Users\\Start Menu"
"Common Startup"="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup"
"Common Templates"="C:\\Documents and Settings\\All Users\\Templates"
"CommonMusic"="C:\\Documents and Settings\\All Users\\Documents\\My Music"
"CommonPictures"="C:\\Documents and Settings\\All Users\\Documents\\My Pictures"
"CommonVideo"="C:\\Documents and Settings\\All Users\\Documents\\My Videos"

Step 4: Navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders. The following is an example of what these registry values should look:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
"Common AppData"="%ALLUSERSPROFILE%\Application Data"
"Common Desktop"="%ALLUSERSPROFILE%\Desktop"
"Common Documents"="%ALLUSERSPROFILE%\Documents"
"Common Favorites"="%ALLUSERSPROFILE%\Favorites"
"Common Programs"="%ALLUSERSPROFILE%\Start Menu\Programs"
"Common Start Menu"="%ALLUSERSPROFILE%\Start Menu"
"Common Startup"="%ALLUSERSPROFILE%\Start Menu\Programs\Startup"
"Common Templates"="%ALLUSERSPROFILE%\Templates"

Step 5: Navigate to the following location: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders. The following is an example of what these registry values should look:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
"Administrative Tools"="C:\\Documents and Settings\\\\Start Menu\\Programs\\Administrative Tools"
"AppData"="C:\\Documents and Settings\\\\Application Data"
"Cache"="C:\\Documents and Settings\\\\Local Settings\\Temporary Internet Files"
"CD Burning"="C:\\Documents and Settings\\\\Local Settings\\Application Data\\Microsoft\\CD Burning"
"Cookies"="C:\\Documents and Settings\\\\Cookies"
"Desktop"="C:\\Documents and Settings\\\\Desktop"
"Favorites"="C:\\Documents and Settings\\\\Favorites"
"Fonts"="C:\\WINDOWS\\Fonts"
"History"="C:\\Documents and Settings\\\\Local Settings\\History"
"Local AppData"="C:\\Documents and Settings\\\\Local Settings\\Application Data"
"Local Settings"="C:\\Documents and Settings\\\\Local Settings"
"My Music"="C:\\Documents and Settings\\\\My Documents\\My Music"
"My Pictures"="C:\\Documents and Settings\\\\My Documents\\My Pictures"
"My Video"="C:\\Documents and Settings\\\\My Documents\\My Videos"
"NetHood"="C:\\Documents and Settings\\\\NetHood"
"Personal"="C:\\Documents and Settings\\\\My Documents"
"PrintHood"="C:\\Documents and Settings\\\\PrintHood"
"Programs"="C:\\Documents and Settings\\\\Start Menu\\Programs"
"Recent"="C:\\Documents and Settings\\\\Recent"
"SendTo"="C:\\Documents and Settings\\\\SendTo"
"Start Menu"="C:\\Documents and Settings\\\\Start Menu"
"Startup"="C:\\Documents and Settings\\\\Start Menu\\Programs\\Startup"
"Templates"="C:\\Documents and Settings\\\\Templates"

Step 6: Navigate to the following location: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders. The following is an example of what these registry values should look:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
"AppData"="%USERPROFILE%\Application Data"
"Cache"="%USERPROFILE%\Local Settings\Temporary Internet Files"
"Cookies"="%USERPROFILE%\Cookies"
"Desktop"="%USERPROFILE%\Desktop"
"Favorites"="%USERPROFILE%\Favorites"
"History"="%USERPROFILE%\Local Settings\History"
"Local AppData"="%USERPROFILE%\Local Settings\Application Data"
"Local Settings"="%USERPROFILE%\Local Settings"
"My Pictures"="%USERPROFILE%\My Documents\My Pictures"
"NetHood"="%USERPROFILE%\NetHood"
"Personal"="%USERPROFILE%\My Documents"
"PrintHood"="%USERPROFILE%\PrintHood"
"Programs"="%USERPROFILE%\Start Menu\Programs"
"SendTo"="%USERPROFILE%\SendTo"
"Start Menu"="%USERPROFILE%\Start Menu"
"Startup"="%USERPROFILE%\Start Menu\Programs\Startup"
"Templates"="%USERPROFILE%\Templates"

Step 7: If any of the entry different from the example, double-click on the entry to modify the Value Data accordingly.

Step 8: Close the Registry Editor and restart the computer.

Step 9: Perform software installation.

Solution 6: Create a new local administrator account

Step 1: Login to a new local administrator account.

Step 2: Perform software installation.

Solution 7: Disconnect network drive

This solution will only assist you if network drives appear under My Computer.
Step 1: Click Start > Programs > Windows Explorer.

Step 2: Click Tools > Disconnect Network Drive.

Disconnect network drive option
Disconnect network drive option

Step 3: Select the network drive on which the shell folder is located and click OK button.

Step 4: On the Tools menu, click Map Network Drive.

Step 5: Uncheck Reconnect at Logon and type the path to the shell folder then click OK button.

Step 6: Restart Windows then install the application again.

Published by Thomas Apel

, a dynamic and self-motivated information technology architect, with a thorough knowledge of all facets pertaining to system and network infrastructure design, implementation and administration. I enjoy the technical writing process and answering readers' comments included.