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?
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!
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) |
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!
Comment