Contents - Index - Previous - Next


SFXToZip method

 

Applies to

TVCLZip component

 

Declaration

procedure SFXToZip(DeleteSFX: Boolean);

 

Description

This will convert an sfx archive to a regular zip archive.  If you want to delete the original sfx file when the conversion is done, then set DeleteSFXFile to True.   The ZipName Property must be set to the SFX file that you wish to convert first.  

 

All header pointers will be properly adjusted during the conversion.  

 

When the conversion is done, the current archive, ZipName, will be set to the newly created ZIP file.  

 

Example:  

VCLZip1.ZipName := 'c:\mydirectory\SomeSFX.EXE';  // Set the SFX file to be converted 

VCLZip1.ReadZip;  // Cause VCLZip to read the contents of the file 

VCLZip1.SFXToZip(True);  // Convert the SFX to a regular ZIP file and delete the old SFX file.