in

ljusberg.se

Smöråkning

Error 1327 Invalid drive

This error was such an odd one, I thought I'd share it.. We've been creating MSI packages using Wise, and they have been running very well on pretty much all computers. So imagine my surprise when I get an email from a guy at the Norweigan it department saying that when he tries to install the package he gets an "Error 1327. Invalid drive h:\" message.

He was logging on as domain admin on a setup where they have roaming profiles (i.e. the My Documents folder etc is stored on the network). After some investigation, he found that if he changed the registry key for My Documents (Hkey_Current_user\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folder\Personal) to use the complete UNC path instead of "h:\" as was used before, it all worked without any problems.

First of all, we don't install anything to My Documents or anything else that should be user related. But apparently, the installation uses that path for storing temporary files or something.

Anyway, just for the heck of it, he tried changing the registry setting to the complete UNC path instead (i.e. \\servername\etc\etc). And voila, the installation succeeded!

It turns out that the server he was using was a Win 2000 instance on MS Virtual Server. After a LOT of searching, I found a couple of articles that mentioned a similar error: MS KB 255582. AppDeploy.com FAQ To sum them up, MSI packages that are installed remotely via Terminal Services on a Win2000 box (and I guess that Virtual Server uses the same functionality) cannot use mapped drives because they are running in a different context (the Windows Installer service is running as a service in the console session , not in the session of the remote user).

The solution.. Well, either use UNC names in the registry or upgrade to Windows XP or 2003 where this problem is supposed to be solved..!

Comments

 

Wilfred van Dongen said:

Thanks, this post helped me to resolve an issue regarding virtual server 2005.

I got the same error while uninstalling virtual machine additions of a virtual server (to do an update). Although we do not use roaming profiles, the msi installation apparently tried to look for a h-drive. Searching the registry for H:\ and replacing it with C:\ solved the issue. All these keys that i changed, were referring to common files directory.

January 11, 2006 4:20 PM
 

Anders Ljusberg said:

Glad to have helped! And congratulations on being the first ever to comment on one of my posts! :-)

January 11, 2006 4:58 PM
 

Martin Gray said:

Hi I to have an issue that I am not able to resolve being a little slow with computors, I am looking for some simple instructions on how to stop this error 1327 invalid drive H.... Please please someone help!!!

thanks Martin

February 15, 2007 2:48 AM
 

Tony said:

FINALY!!!! someone with the same problem.....

i have got a computer from my dads work that used be on a network.

but now everytime i want to install some thing it says invalid drive h i have heart something about changing the registry key of my documents but how do i do that??????????

i cant take the network settings and stuff of because its still sometimes being used on that network but i dont want to go over there every time i want to install something..... ur help wud be apreciated...

thnx!!!!

Tony.

March 13, 2007 6:25 AM
 

Kai C said:

Super. Tack!

November 14, 2007 2:18 PM
 

Micke said:

Thanks!

This was exactly what I needed instead of all crappy advices to delete any references to the problem drive. There is a reason why you would use folder redirection.

This shitty problem occured for me in Windows Vista BTW:-).

The most embarrasing about it is that it was my own fault. I redirected My Documents and used device path instead of UNC-path and didn't think about the problem when you use secondary logon...

Anyways, Thanks!

April 28, 2008 3:11 PM

Leave a Comment

(required)  
(optional)
(required)  
Add
Powered by Community Server (Non-Commercial Edition), by Telligent Systems