Sdílet prostřednictvím


Error 1324. The folder path 'Program Files' contains an invalid character while installing .NET Framework

Have you run into issue "Error 1324. The folder path 'Program Files' contains an invalid character" while installing .NET Framework. Here are steps that you could try the troubleshoot the issue.

1. Look at article at 923101 and removed all the DVD and CD ROMS

2. Look at the following registry hives to find if there are any invalid characters like '\'

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell

Folders

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell

Folders

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

3. Turn on verbose logs

Set the following registry key.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\Installer

Create a string Value and name it as: Logging

Provide the value data as : voicewarmup

A file with name like MSIxxxxx.log in the Start->Run->%temp% folder.

Example:

MSI Snippet:

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

Action start 11:59:07: CostInitialize.

MSI (c) (88:04) [11:59:07:305]: Machine policy value 'MaxPatchCacheSize' is 10

MSI (c) (88:04) [11:59:07:305]: Note: 1: 1325 2: Installer

MSI (c) (88:04) [11:59:07:305]: Note: 1: 1325 2: Installer

MSI (c) (88:04) [11:59:07:305]: Note: 1: 1336 2: 5 3: P:\

MSI (c) (88:04) [11:59:07:320]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'D:\'.

MSI (c) (88:04) [11:59:07:320]: Note: 1: 1324 2: Program Files 3: 1

Error 1324.The folder path 'Program Files' contains an invalid character.

MSI (c) (88:04) [11:59:14:617]: Product: Microsoft .NET Framework 2.0 -- Error 1324.The folder path 'Program Files' contains an invalid character.

Action ended 11:59:14: CostFinalize. Return value 3.

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

4. Check if there are any hard drives and remove those. You could also check in the disk management to see if all the drives have been displayed there

If you are still getting the same error see if you could install any sample msi package and check the verbose logs and if you find the following property ‘Disableuserinstalls’ set to 1 follow these steps

https://support.microsoft.com/kb/121007

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Select the NtfsDisable8dot3NameCreation entry and change the value to 0

Select the Win31FileSystem entry and change the value to 0

Bingo that should do the trick!!!!