As described, this project depends on rcinfo to extract the main executable's VERSIONINFO to then apply to the stub executable via rcedit.
Unfortunately if the host machine doesn't have the (unsupported since 2020) "Visual Studio 2010 (VC++ 10.0) SP1" redistributables installed (for x86!!! x64 doesn't fix this, watch out), the VERSIONINFO will silently fall back to the Electron app's package metadata.
This is a good fallback but it unfortunately makes an incorrect assumption about what "File Version" should be. electron-packager uses the buildVersion packagerConfig property for the "File Version" of the vended executable, while electron-wix-msi falls back to the appVersion (aka "Product Version" in Windows).
As described, this project depends on rcinfo to extract the main executable's
VERSIONINFOto then apply to the stub executable viarcedit.Unfortunately if the host machine doesn't have the (unsupported since 2020) "Visual Studio 2010 (VC++ 10.0) SP1" redistributables installed (for x86!!! x64 doesn't fix this, watch out), the VERSIONINFO will silently fall back to the Electron app's package metadata.
This is a good fallback but it unfortunately makes an incorrect assumption about what "File Version" should be. electron-packager uses the
buildVersionpackagerConfig property for the "File Version" of the vended executable, while electron-wix-msi falls back to theappVersion(aka "Product Version" in Windows).