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.

PropertyData 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%.
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 | Compute CRC-32 of a file” menu command in Paquet Builder to get the CRC-32 of an original file, then use this action to calculate the one of the same file (once extracted). Using a Conditional If block, you can check whether the file was successfully extracted or not.
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 or ARM64, value is set to 0. If the tested file is not a valid EXE, the value is set to blank.