operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Embed Version Information in Windows Binary

Open bloudraak opened this issue 7 years ago • 1 comments

System

  • Version: 2.32
  • Platform: Windows (both 64bit + 32bit)
  • Firefox: N/A
  • Selenium: N/A

Testcase

  • Download the binary from GitHub Releases.
  • Extract the archive
  • Navigate to the binary
  • Right Click on the binary, select Properties and look at the Details tab

The expectation is that it will contain the current version of the binary, which is 2.32.

Rationale

It seems that every web driver has its own custom way of displaying version information and that could change anytime, thus complicating tasks as simple as determining which version of which binary was deployed.

If the version information is embedded in the executable, it allows for the following scenarios:

  • support for asset management systems
  • support for automation through the GetFileVersionInfo Windows API (or a binding that supports it)
  • support for packaging systems that can use the version in the binary to determine whether the binary should be deployed or not.

More information: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646981(v=vs.85).aspx

bloudraak avatar Dec 30 '17 00:12 bloudraak

Hi @bloudraak! Thanks for sharing the enhancement idea with us. It seems reasonable to me. I will forward it to our development team for further evaluation. Meanwhile you may use "--version" command line switch, which is a reliable way to get a version string for particular operadriver binary and is unlikely to change.

wladzynski avatar Jan 17 '18 16:01 wladzynski