Get File Information
This action retrieves a specific property you want to know about a given file and stores it into a variable.
Properties
Section titled “Properties”| Property | 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
Section titled “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 | 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. |
| 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 or ARM64, value is set to 0. If the tested file is not a valid EXE, the value is set to blank. |
Action Catalog Browse all available custom actions.