Read-FileVersion

Retrieves the version of a file and stores the result         in a variable.


Settings:

  • Path
    Path including file name to the file to be read. The use of variables is possible. Use the "..." button to select an existing file (on the packaging system) or enter the path manually.
  • Variable name
    Name of the variable. Specify only the name of the variable, not the $ sign and curly brackets.
  • Use 32-Bit mode on x64 computer
    If the script is executed on a 64-bit operating system, the counterpart for 32-bit applications SysWOW64 can be used automatically when referring to the SYSTEM32 directory.


Example:

In this example, the version of the PackageDeployment Module is read and stored in the variable PPBModuleVersion.


Corresponds to DSM eScript command:

  • GetFileVersion


See also: