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.
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.
Table of Contents
- 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.
- Press Windows key + R to open the Run dialog box.
- 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. - Type the following command and press Enter to map the drive that is causing the error:
subst /D [Driver Letter]
- Type
exit
and press Enter. - Perform software installation.
Solution 2: Map the unmatched drive letter using net use command
- Press Windows key + R to open the Run dialog box.
- 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. - 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.
- Close the elevated Command Prompt and restart the computer.
- Perform software installation.
Solution 3: Redirect the operation using subst command
- Press Windows key + R to open the Run dialog box.
- 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. - 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 besubst F: C:\
- Close the elevated Command Prompt and restart the computer.
- Perform software installation.
Solution 4: Modify the drive letter via Registry Editor
- Press Windows key + R to open the Run dialog box.
- 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. - Navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\
. - Enter the subfolder associated with office installation (E.G. 15.0, 16.0, 11.0, etc.), then select the Delivery key.
- Double-click on LocalCacheDrive at the right-hand section.
- Set the Value Data to OS drive (normally C drive) and press OK to save the changes.
- Navigate to the following location:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders. - In the right pane, search for values in the Data column in each entry that list the drive letter referenced in the error message.
- 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.
- 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
- Close the Registry Editor and restart the computer.
- Perform software installation.
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.
- Press Windows key + R to open the Run dialog box.
- 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. - 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"
- 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"
- 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"
- 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"
- If any of the entry different from the example, double-click on the entry to modify the Value Data accordingly.
- Close the Registry Editor and restart the computer.
- Perform software installation.
Solution 6: Create a new local administrator account
- Login to a new local administrator account.
- Perform software installation.
Solution 7: Disconnect network drive
This solution will only assist you if network drives appear under My Computer.
- Click Start > Programs > Windows Explorer.
- Click Tools > Disconnect Network Drive.
- Select the network drive on which the shell folder is located and click OK button.
- On the Tools menu, click Map Network Drive.
- Uncheck Reconnect at Logon and type the path to the shell folder then click OK button.
- Restart Windows then install the application again.