When installing a program in Windows, you can get the following error:
Error 1327. Invalid Drive: <<Drive>>
This is typically followed by:
Installation ended prematurely because of an error.
This is caused by an invalid entry in the registry, there is a fix and a workaround available for this. To fix error 1327, update the following registry keys to point to a hard drive location that actually exists:
- HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Once this is done, try installing the program again. You shouldn’t get the Invalid drive error again, but if you continue to get error 1327, try the following workaround:
Before installing the erroring application, run the following in the command prompt:
subst <<erroneous drive letter>>: c:\
For example, if you get the F:\ drive as the invalid drive in the error 1327, and C:\ is a valid hard drive to install programs to, type the following:
subst f: c:\
This should fix the error while you install the software, but as soon as you reboot, error 1327 may occur for other installations.