Obtencion de version de archvio considerando arquitectura

Buenas tardes, no tengo mucha experiencia pro lo que requiero de su ayuda.

Para obtener el análisis de la versión de un archivo considerando las dos rutas debido a la arquitectura
(Progamfile)
(programfile x86)

¿Cuál sería un posible código? como comenté, no tengo mucha experiencia

saludos

The BigFix Client by default searches the 32-bit folder structure with the default inspectors -

file "c:\Program Files\MyFolder\MyFile.exe"

folder "MyFolder" of program files folder

file "cmd.exe" of system folder

would each refer to “C:\Program Files (x86)” or to “C:\Windows\SysWow64\cmd.exe”, based on 32-bit redirection.

We provide several alternate inspectors that can be used to explicitly use the “32-bit” or “64-bit” or “whichever is native to the operating system” (i.e. 32-bit on 32-bit systems or 64-bit on 64-bit systems) or “redirected folder” (explicitly the 32-bit on 64-bit systems). These include

Q: native files "C:\Program Files\7-zip\7zfm.exe"
A: "7zfm.exe" "19.0.0.0" "7-Zip File Manager" "19.00" "Igor Pavlov"
T: 2777

Q: x64 files "C:\Program Files\7-zip\7zfm.exe"
A: "7zfm.exe" "19.0.0.0" "7-Zip File Manager" "19.00" "Igor Pavlov"
T: 1582

Q: files "7zfm.exe" of folders "7-zip" of program files folder
T: 668

Q: files "7zfm.exe" of folders "7-zip" of native program files folder
A: "7zfm.exe" "19.0.0.0" "7-Zip File Manager" "19.00" "Igor Pavlov"
T: 1905

Q: files "7zfm.exe" of folders "7-zip" of x64 program files folder
E: The operator "x64 program files folder" is not defined.

Q: files "7zfm.exe" of folders "7-zip" of program files x64 folder
A: "7zfm.exe" "19.0.0.0" "7-Zip File Manager" "19.00" "Igor Pavlov"
T: 1888

Q: files "djoin.exe" of system folder
T: 734

Q: files "djoin.exe" of native system folder
A: "djoin.exe" "10.0.19041.1466" "Unattended Setup Generic Command For Domain Join" "10.0.19041.1 (WinBuild.160101.0800)" "Microsoft Corporation"

Where a file exists in both c:\windows\system32 and in c:\windows\syswow64 we can see the difference in the results between the default, x32, x64, native, and wow64 inspectors:

Q: (size of it, name of it) of files "cmd.exe" of system folder
A: 236544, cmd.exe
T: 1400

Q: (size of it, name of it) of files "cmd.exe" of system x32 folder
A: 236544, cmd.exe
T: 1317

Q: (size of it, name of it) of files "cmd.exe" of system wow64 folder
A: 236544, cmd.exe
T: 1432

Q: (size of it, name of it) of files "cmd.exe" of native system folder
A: 289792, cmd.exe
T: 1332

Q: (size of it, name of it) of files "cmd.exe" of system x64 folder
A: 289792, cmd.exe
T: 976

In a case like yours, the default behavior of the ‘program files folder’ inspector should give what you want. As an example, this analysis retrieves the version of iexplore.exe from the “C:\Program Files\Internet Explorer” folder on a 32-bit operating system, or from the “C:\Program Files (x86)\Internet Explorer” folder on a 64-bit system:

Q: (name of it, version of it) of files "iexplore.exe" of folders "Internet Explorer" of program files folder
A: iexplore.exe, 11.0.19041.1566