SplitScript reference / ModuleVersionInfo
ModuleVersionInfo
record
record ModuleVersionInfo
The fixed numeric versions embedded in a Windows PE module.
Windows keeps separate file and product identities in VS_FIXEDFILEINFO. They are often equal, but launchers and repackaged executables can use a stable product version while changing the individual file version.
Examples
Compare file and product identities
let executable = await process.mainModule()
let versions = executable.versionInfo() else return
let sameRelease = versions.file == versions.product
Fields
| Member | Description | Available through |
|---|---|---|
| file | The version of this particular executable or library file. | |
| product | The version of the product to which the module belongs. |