When we tried to install Visual FoxPro 9.0, we received an error message : Error 1327.Invalid Drive:< mapped drive name>:\

 

From the MSI log file:

==========================================================

MSI (s) (5C:B8) [14:35:08:206]: Note: 1: 2228 2:  3: MsiAssembly 4:  SELECT `MsiAssembly`.`Attributes`, `MsiAssembly`.`File_Application`, `MsiAssembly`.`File_Manifest`,  `Component`.`KeyPath` FROM `MsiAssembly`, `Component` WHERE  `MsiAssembly`.`Component_` = `Component`.`Component` AND `MsiAssembly`.`Component_` = ?

MSI (s) (5C:B8) [14:35:08:206]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'C:'.

MSI (s) (5C:B8) [14:35:08:206]: PROPERTY CHANGE: Modifying SystemFolder.3643236F_FC70_11D3_A536_0090278A1BB8 property. Its current value is 'C:\Windows\system32\'. Its new value: 'C:\Windows\system32'.

MSI (s) (5C:B8) [14:35:08:206]: Note: 1: 2262 2: Condition 3: -2147287038

MSI (s) (5C:B8) [14:35:08:206]: Machine policy value 'EnforceUpgradeComponentRules' is 0

MSI (s) (5C:B8) [14:35:08:206]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'C:'. Its new value: 'C:\'.

MSI (s) (5C:B8) [14:35:08:206]: PROPERTY CHANGE: Modifying SystemFolder.3643236F_FC70_11D3_A536_0090278A1BB8 property. Its current value is 'C:\Windows\system32'. Its new value: 'C:\Windows\system32\'.

MSI (s) (5C:B8) [14:35:08:206]: Note: 1: 1327 2: K:\

Action start 14:35:08: CostFinalize.

MSI (s) (5C:B8) [14:35:08:206]: Product: Visual FoxPro 9.0 Baseline - English -- Error 1327.Invalid Drive: K:\

 

Error 1327.Invalid Drive: K:\

Action ended 14:35:08: CostFinalize. Return value 3.

Action ended 14:35:08: INSTALL. Return value 3.

===================================================================

 

Here the U:\ was a user profile drive and  mapped drive.

To resolve the issue, we had to modify the following registry :

 

We found that following registry had the path of K:\ and changed the path to %userprofile%\

 

HKEY_Current_User\Software\Microsoft\Windows\currentversion\Explorer\usershellfolder - right hand side look at the value for “Personal”. It needs to be %userprofile%\ not the drive name as the installation of the software is per-machine based and it will fail it sees the “Personal” value as a specific user drive path.

 

Content by: Parameswary Annamalai

Reviewed by: Soumitra Mondal