0

I have my personal profile's Documents folder redirected to a network drive H:\ . This was done by right clicking on Documents, Properties, choosing Location, and selecting H:\ .

I have a problem where some (I am not sure whether it is all) MSI installers will fail with an "Error 1327 Invalid Drive H:\" when I attempt to install them.

As a workaround, I can edit the registry at

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\

and set the registry key "Personal" temporarily back to "%USERPROFILE%\Documents", do the install, and then change it back. I don't know why this needs to be done though, as nothing is actually installed into that directory.

Does anyone have a more elegant solution?

Neobyte
  • 3,177
  • 25
  • 29

4 Answers4

1

Instead of mapping to the network drive "H:\", use the full UNC path: i.e. "\\server\user\docs"

This worked for me when I ran into the same issue~

  • As stated below, permissions could also be an issue if your are "Run As..."'ing the install. –  Jun 16 '09 at 04:06
1

In Vista when installing a .msi package it's handled by Windows Installer which runs as the TrustedInstaller account. When it tries to access the msi package there's no such thing as H:.

The HKCU registry fix works because then the file will exist on your physical drive and thus be reachable by Windows Installer.

To avoid this type of issue you should never redirect a folder to a mapped drive, always use UNC paths when redirecting folders.

Paxxi
  • 163
  • 3
  • 8
0

Is the MSI running as a different user, so it doesn't have H: mapped?

Steven
  • 3,009
  • 18
  • 18
0

This is occurring because the msi is using your home directory as temporary file storage. I would check to see if the permissions on your H drive are the same.

MathewC
  • 6,877
  • 9
  • 38
  • 53