Get File Information

This action retrieves a specific property you want to know about a given file and stores it into a variable.

Property NameData TypeDescription
FilenameStringIndicates the full path to the file you want to get information about. For instance %SYS%\shell32.dll
InfoToGetTfiFileInfoTells the package which information to retrieve. See below.
ReturnVariableVarNameThe variable that will store the result of the operation. For example %MYRESULT%.

Available information

NameDescription
fiGetFileCRC32Computes the 32-bit cyclic redundancy checksum (CRC-32) of the file. This command is useful if you want to check whether a file is not altered. May require time for large files (several GB) depending on the computer configuration. Use the “Tools
fiGetFileMajorVersionReturns the Major Version number of an executable file (from Version Info resource block)
fiGetFileMinorVersionReturns the Minor Version number of an executable file (from Version Info resource block)
fiGetFileRevisionNumberReturns the File Revision number of an executable file (from Version Info resource block)
fiGetFileBuildNumberReturns the File Build number of an executable file (from Version Info resource block)
fiGetFileSizeObtains the size in bytes of the specified file.
fiTestEXEx86Returns whether the tested file is a 32-bit executable (value set to 1 = true). If the EXE file is 64-bit, value is set to 0. If the tested file is not a valid EXE, the value is set to blank.

The first 4 options are used to compare file version information: you can determine whether a file already present on the destination computer is more recent or not (and consequently whether it should be overwritten or not). This has to be used with the conditional variables and a Conditional If block for instance.

“fiTestEXEx86” lets you test whether an executable program file is 32-bit or 64-bit. It works on any Windows version.

All available actions

© G.D.G. Software 2018. All rights reserved.