Announcement

Collapse
No announcement yet.

Program Files paths on 32-bit vs. 64-bit Windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Program Files paths on 32-bit vs. 64-bit Windows

    Hi, just trying to figure out how the TrueUpdate "programfilesfolder" global and session variables would resolve on different Windows systems. Sorry if this is a noob question, but I couldn't find any definitive answers on it.

    Obviously on 32-bit Windows, the only valid variables are "_ProgramFilesFolder" and %ProgramFilesFolder%, which I assume resolve to "C:\Program Files"?

    But on 64-bit Windows, we have "C:\Program Files" where 64-bit applications are installed, and we have "C:\Program Files (x86)" where 32-bit applications are installed. I noticed there is an undocumented session variable %ProgramFilesFolder64%, which I'm guessing resolves to "C:\Program Files" on 64-bit Windows? So then, does %ProgramFilesFolder% resolve to "C:\Program Files (x86)" on 64-bit Windows?

    So basically, in the table below, are the TrueUpdate global and session variables correct? And what (if any) are the missing values?
    Application on Platform Typical Path Windows Environment Variable TrueUpdate Global Variable TrueUpdate Session Variable
    32-bit applications on 32-bit Windows C:\Program Files %PROGRAMFILES% _ProgramFilesFolder %ProgramFilesFolder%
    32-bit applications on 64-bit Windows C:\Program Files (x86) %PROGRAMFILES(X86)% ? ?
    64-bit applications on 64-bit Windows C:\Program Files %PROGRAMFILES% ? %ProgramFilesFolder64% (undocumented)
    References:

    TrueUpdate global variables: https://www.indigorose.com/webhelp/t..._Variables.htm
    TrueUpdate session variables: https://www.indigorose.com/webhelp/t..._Variables.htm
    Windows environment variables: https://ss64.com/nt/syntax-64bit.html - section "File location environment variables"

    Thanks in advance!

  • #2
    TrueUpdate has access only to the 32-bit folders, even on 64-bit platforms. The SessionVar %ProgramFilesFolder64% is unsupported in TrueUpdate, it will return the same result as %ProgramFilesFolder%. Should you need to access any folder reserved for 64-bit applications from the 32-bit TrueUpdate process, you need to use the Wow64 plugin.

    Ulrich

    Comment

    Working...
    X