共用方式為


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!!!!

Comments

  • Anonymous
    November 05, 2009
    Oh my goodness!!! You have no idea how my computer has been stressing me out. I was unable to install or uninstall anything. I thought at first it was just the .NET 1.1, after I could not get the new patches to install. But, I checked everything like you said, an the last fix did the trick. Happy, Happy, Happy!!!

  • Anonymous
    January 13, 2010
    Step 1 worked for me. Thanks so much!

  • Anonymous
    June 22, 2010
    Thank you very much, Step 1 of this solution helps me.

  • Anonymous
    August 07, 2010
    Thanks a lot man! You saved my life!

  • Anonymous
    April 25, 2011
    The comment has been removed

  • Anonymous
    June 20, 2011
    Below link worked with me support.microsoft.com/.../923101

  • Anonymous
    April 03, 2015
    Dualboot here..Drive C encrypted with Bitlocker, drive D was OS drive when I installed .net MicroFramework. So, drive C was not accessible by the installer. I "opened" the Bitlocked drive with the rescue key and voilà: problem solved.

  • Anonymous
    July 21, 2015
    It worked for me windows 8 64 bit os.
    go to my pc>>advance system settings>> set environment path

    where ever you find temp edit the path and remove everything like %USERPROFILE%AppDataLocalTemp; from path TEMP.

    click ok>> restart and it should work.

    happy coding. :)