cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
scottd72
Level 7

"Error 1327. Invalid Drive" during Uninstall

I have a colleague who installed our product from his H:\ to a location on his C:\. This was a basic MSI installer. At some point he moved all the files from his H:\ to his C:\ and then removed his H:\. Now when he tries to uninstall our product he gets an error

Why is the uninstall checking for the H:\ and insisting that it be available?
Labels (1)
0 Kudos
(2) Replies
scottd72
Level 7

A little more info on this. In the verbose log, a little ways below ******* CommandLine: ********** it has
SHELL32::SHGetFolderPath returned: H:\
.
.
SHELL32::SHGetFolderPath returned: H:\My Pictures (H)

And then much later, during CostFinalize I get:
MSI (s) (E4:CC) [11:49:57:405]: Note: 1: 1327 2: H:\
MSI (s) (E4:CC) [11:51:47:612]: Product: Our Product Name -- Error 1327. Invalid Drive: H:\
0 Kudos
scottd72
Level 7

The reason this is happening is because I'm using SHGetFolderPath() in my script and it must evaluate all the values under HKEY_USERS\S-1-5-21-610559702-419526538-1541874228-4715\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders & User Shell Folders when intialized. Somehow at some point a couple of these values got changed: "Personal"="H:\\" and "My Pictures"="H:\\My Pictures (H)" So to fix I just replaced all the instances of "H" with "C" and the uninstall works.
0 Kudos