Xceed Zip Compression Library Documentation
SkipIfOlderVersion property
Xceed Zip control reference > Xceed Zip control properties > SkipIfOlderVersion property

Description

The SkipIfOlderVersion property allows you to process only files that have a version number greater or equal to the version number of corresponding files already in the destination unzipping folder or, when zipping, the destination zip file. The version number is determined by consulting the version information resource usually embedded in executable files of various kinds, such as .EXEs, .DLLs and .OCXs.

When using the Zip method, setting SkipIfOlderVersion to True will compare the version numbers of files about to be zipped with the version numbers corresponding files already in the destination zip file. Files with an older version number (or no version number) than those already in the zip file will be skipped (excluded from processing).

The same idea applies when using the Unzip method: setting SkipIfOlderVersion to True will compare the version numbers of files about to be unzipped with the version numbers of corresponding files already in the destination unzipping folder. Files with an older version number (or no version number) than those already in the destination unzipping folder will be skipped.

Files that have been excluded because of the SkipIfOlderVersion property will be tagged as "excluded" when the ZipPreprocessingFile or UnzipPreprocessingFile event is triggered, and will not be processed unless you change the value of the excluded parameter to False.

Data type

Boolean

Default value

False

Declaration (DLL API)  

BOOL XzGetSkipIfOlderVersion( HXCEEDZIP hZip )

void XzSetSkipIfOlderVersion( HXCEEDZIP hZip, BOOL bValue )

Remarks

Folder entries are not affected by this property.

Applicable methods

Zip, Unzip

Related topics

See the SkipIfExisting, SkipIfNotExisting and SkipIfOlderDate properties for variations on this theme.