All shortcuts point to the wrong Program Files folder


  1. Posts : 1
    Windows XP
       #1

    All shortcuts point to the wrong Program Files folder


    Hi,
    Today I was asked to help in a problem with shortcuts in Windows 7 which pointed to the wrong non-existing location. The issue refers too all shortcuts connected with the Program Files folder.

    As I didn't know what is the issue the first idea was to create a completely new profile (i.e. user account) to check if the problem arises there as well.
    Fortunately the new profile/account was correct, all links were fine. It meant the problem was connected only with the first profile. That's why I decided to recreate the IconCache.db file by removing it and restarting the machine. Unfortunately it didn't help.

    The system itself is a Polish edition of Windows 7 and because it works on 64-bit platform there are 2 folders for applications:
    a) (for 32-bit apps) "c:\Program Files"
    b) (for 64-bit apps) "c:\Pliki programów (x64)"
    Almost all programs are installed in b) but all corrupted links pointed to "c:\Program Files (x64)" instead of "c:\Pliki programów (x64)". Somehow the links contained the English name ("c:\Program Files (x64)") instead of Polish one ("c:\Pliki programów (x64)"). This was the reason they didn't work.

    Do you have any idea what could happen and how to fix it ?

    Thank you for help,
    rafi
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #2

    Where are the faulty shortcuts located? On desktop or in startmenu ... or?

    normal is:
    C:\program files =>for 64bits
    C:\Program Files (x86) =>for 32 bits

    open command prompt
    Code:
    set
    Do you see this in the list?
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    -------

    c:\Program Files (x64) is very abnormal.... are you sure?
      My Computer


  3. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #3
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    Hi Rafi, welcome to the Seven Forums.

    First, you have got it wrong: A 64 bit windows 7 has two folders for programs as Kaktussoft already told:
    • Program Files > for 64 bit programs (executables and binary files)
    • Program Files (x86)> for 32 bit programs (executables and binary files)

    Whatever language version of Windows 7 you are using, the Windows system files and folders always have same English names. In fully or partially localized language versions the folder names themselves are not translated, changed to respective language, they always remain in English. Instead the localization only translates the names of the so called links used by Windows Explorer.

    In other words, for instance the folder Program Files (x86) is called Program Files (x86) in Polish Windows 7 although the Explorer also uses the link Pliki programów (x86), or the folder Users is called Users in Finnish Windows 7 although it can also be accessed in Explorer using the localized Finnish link name Käyttäjät.

    See the screenshot for an explanation:

    All shortcuts point to the wrong Program Files folder-2013-06-15_141309.png
    (Click to enlarge.)

    Therefore a shortcut should and must always point to the folder using its actual (English) name instead of the localized link.

    Let's use the Internet Explorer shortcut as an example. In localized version (German in this example) the Windows Explorer shows the location of IE as C:\Programme (x86)\Iexplore.exe. However, as Programme (x86) is only a link instead of actual location, IE's shortcut must use the actual folder name Program Files (x86). Please notice also that for instance Command Prompt cannot find the Iexplore.exe executable file using the localized German link name but needs instead the full, actual folder name in English.

    See the screenshot for explanation:

    All shortcuts point to the wrong Program Files folder-2013-06-15_144320.png

    All system folders can also be accessed in Explorer using their respective English environment variable names, regardless of the used Windows language version. Type %programdata% on Explorer addressbar and hit enter to open by default hidden ProgramData folder, %programfiles(x86)% to enter Program Files (x86), %temp% to open Temp folder, %appdata% to open your AppData\Roaming folder and so on.

    A tip: you can always see the actual folder names and location in Explorer by clicking inside the addressbar:

    Addressbar showing the localized link:

    All shortcuts point to the wrong Program Files folder-2013-06-15_144811.png

    Clicking the addressbar shows the actual folder names:

    All shortcuts point to the wrong Program Files folder-2013-06-15_144852.png

    Conclusion:
    All shortcuts should always point to actual location of target files using the actual English folder names for Windows system folders. Any localized folder (link) names in shortcut target name will cause errors.

    Kari
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:41.
Find Us