Skip to content

Get File Information

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

Property Name Data Type Description
Filename String Indicates the full path to the file you want to get information about. For instance %SYS%\shell32.dll
InfoToGet TfiFileInfo Tells the package which information to retrieve. See below.
ReturnVariable VarName The variable that will store the result of the operation. For example %MYRESULT%.

Available information

Name Description
fiGetFileCRC32 Computes 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
fiGetFileMajorVersion Returns the Major Version number of an executable file (from Version Info resource block)
fiGetFileMinorVersion Returns the Minor Version number of an executable file (from Version Info resource block)
fiGetFileRevisionNumber Returns the File Revision number of an executable file (from Version Info resource block)
fiGetFileBuildNumber Returns the File Build number of an executable file (from Version Info resource block)
fiGetFileSize Obtains the size in bytes of the specified file.
fiTestEXEx86 Returns 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