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.

ReturnVariableVarNameThe variable that will store the result of the operation. For example %MYRESULT%.

Available information:

Name

Description

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.
fiGetFileSizeObtains the size in bytes of the specified file.
fiGetFileVersionLSIf the file to analyze contains a resource version block, then the package retrieves the least significant 32 bits of the file's binary version number.
fiGetFileVersionMSRetrieves the most significant 32 bits of the file's binary version number.
fiGetFullFileVersionConverts the file's binary version number to the traditional format "X.X.X.X" you can see in the "File Properties|Version" tab in Windows Explorer.
fiGetProductVersionLSRetrieves the least significant 32 bits of the binary version number of the product with which this file was distributed.
fiGetProductVersionMSRetrieves the least significant 32 bits of the binary version number of the product with which this file was distributed.

The last 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.


  Paquet Builder Help - Copyright © G.D.G. Software. All rights reserved.