Finding the version of a Windows exe file on a Linux system

I wasn't certain of the version of an application developed for Microsoft Linux that was installed on an Ubuntu Linux system. The wrestool utility is one application that runs on Linux systems that can be used to list or extract resources in binary files developed for Microsoft Windows systems. The utility is part of the icoutils package, which can be installed with the command sudo apt install icoutils. I needed to determine the version of StreamFab which was installed with Bottles. I was able to do so with the command wrestool -x --raw --type=version ~/.var/app/com.usebottles.bottles/data/bottles/bottles/StreamFab/drive_c/Program\ Files/StreamFab/StreamFab/StreamFab64.exe (use a backslash before any space in the directory path or filename).

alice@Wonderland:~$ wrestool -x --raw --type=version ~/.var/app/com.usebottles.bottles/data/bottles/bottles/StreamFab/drive_c/Program\ Files/StreamFab/StreamFab/StreamFab64.exe
4VS_VERSION_INFO���hStringFileInfoD040904E4JCompanyNameDVDFab Software Inc.<
FileDescriptionStreamFabFileVersion7.0.5.24
InternalNameStreamFab�7LegalCopyrightCopyright (c) 2019-2026 DVDFab.cn All Rights Reserved.DOriginalFilenameStreamFab.exe4
ProductNameStreamFabProductVersion7.0.5.2DVarFileInfo$Translation	�

The command showed the version of StreamFab was 7.0.5.2. Once you have installed the icoutils Debian package, you can see details on the package with dpkg -s icoutils.

alice@Wonderland:~$ dpkg -s icoutils
Package: icoutils
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 183
Maintainer: Colin Watson <cjwatson@debian.org>
Architecture: amd64
Multi-Arch: foreign
Version: 0.32.3-6build1
Depends: libwww-perl, perl:any, libc6 (>= 2.34), libpng16-16t64 (>= 1.6.46)
Suggests: libterm-readline-gnu-perl | libterm-readline-perl-perl
Description: Create and extract MS Windows icons and cursors
 Icoutils is a set of programs that deal with MS Windows icons and
 cursors. Resources such as icons and cursors can be extracted from MS
 Windows executable and library files with "wrestool". Conversion of
 these files to and from PNG images is done with "icotool". "extresso"
 automates these tasks with the help of special resource scripts.
 .
 This package can be used to create "favicon.ico" files for web sites.
Homepage: https://www.nongnu.org/icoutils/
alice@Wonderland:~$

Alternatively, you can check the version information for a .exe file with the exiftool utility, which is a command-line tool for reading, writing, and editing metainformation in a wide variety of files. It can be installed with the command sudo apt install libimage-exiftool-perl -y. Once it is installed, you can see details on the package with dpkg -s libimage-exiftool-perl.

alice@Wonderland:~$ dpkg -s libimage-exiftool-perl
Package: libimage-exiftool-perl
Status: install ok installed
Priority: optional
Section: perl
Installed-Size: 28184
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Multi-Arch: foreign
Version: 13.50+dfsg-1
Provides: exiftool
Depends: perl:any
Recommends: libarchive-zip-perl, libcompress-raw-lzma-perl, libio-compress-brotli-perl, 
libunicode-linebreak-perl
Suggests: libposix-strptime-perl
Description: library and program to read and write meta information in multimedia files
 Image::ExifTool is a customizable set of Perl modules plus a full-featured
 command-line application called exiftool for reading and writing meta
 information in a wide variety of files, including the maker note information
 of many digital cameras by various manufacturers such as Canon, Casio, DJI,
 FLIR, FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta,
 Nikon, Nintendo, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Phase One,
 Reconyx, Ricoh, Samsung, Sanyo, Sigma/Foveon and Sony.
 .
 The following modules/packages are recommended for specific features, e.g.
 decoding compressed and/or encrypted information from the indicated file
 types, calculating digest values for some information types, etc.:
 .
  * Archive::Zip / libarchive-zip-perl: ZIP, DOCX, PPTX, XLSX, ODP, ODS, ODT,
    EIP, iWork
  * Unicode::LineBreak / libunicode-linebreak-perl: for column-alignment of
    alternate language output
  * POSIX::strptime / libposix-strptime-perl: for inverse date/time conversion
  * Time::Piece (in perl core): alternative to POSIX::strptime
  * IO::Compress::RawDeflate + IO::Uncompress::RawInflate (in perl core): for
    reading FLIF images
  * Compress::Raw::Lzma / libcompress-raw-lzma-perl: for reading encoded
    7z files
  * IO::Compress::Brotli + IO::Uncompress::Brotli / libio-compress-brotli-perl:
    for writing/reading compressed JXL metadata
Original-Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Homepage: https://exiftool.org/
alice@Wonderland:~$ 

I was able to check the version of StreamFab with that utility using the command exiftool -FileVersion -ProductVersion ~/.var/app/com.usebottles.bottles/data/bottles/bottles/StreamFab/drive_c/Program\ Files/StreamFab/StreamFab/StreamFab64.exe. The command provided the version information in more easily understandable output.

alice@Wonderland:~$ exiftool -FileVersion -ProductVersion ~/.var/app/com.usebottles.bottles/data/bottles/bottles/StreamFab/drive_c/Program\ Files/StreamFab/StreamFab/StreamFab64.exe
File Version                    : 7.0.5.2
Product Version                 : 7.0.5.2
alice@Wonderland:~$