FileCompare
InstallShield 2024 » InstallScript Language Reference
The FileCompare function compares the size, modify dates, contents, or versions of two files.
Syntax
FileCompare ( szFileName1, szFileName2, nCompareFlag );
Parameters
Parameter |
Description |
||||||||||||
szFileName1 |
Specifies the name of the first file to compare. The installation uses the system variable SRCDIR as the path of the file. |
||||||||||||
szFileName2 |
Specifies name of the second file to compare. The installation uses one of the following system variables as the path of the file:
|
||||||||||||
nCompareFlag |
Specifies comparison options. Pass one of the following predefined constants in this parameter:
|
Return Values (when COMPARE_MD5_SIGNATURE is specified)
Return Value |
Description |
||||||
>= ISERR_SUCCESS |
The function successfully compared the files, specifically:
|
||||||
<= ISERR_SUCCESS |
The function failed to compare the files. |
Return Values (when COMPARE_SIZE, COMPARE_DATE, or COMPARE_VERSION is specified)
Return Value |
Description |
|||||||||
>= ISERR_SUCCESS |
The function successfully compared the files, specifically:
|
|||||||||
<= ISERR_SUCCESS |
The function failed to compare the files. |
See Also