The Road to Delphi – Have you noticed how some compressors winrar ® or winzip ® can create self-extracting files. Today we will see how we can generate these files using the ZLib unit wich is included with delphi. The logic goes like this 1) create a exe which the capacity of decompress a resource, this project is responsible for extract the compressed data, which was previously stored as a resource inside of self. This is the code to extract the data stored inside of the resource procedure Extract; var DeCompressStream : TDeCompressionStream; ResourceStream : TResourceStream; DestFileStream : ...
Visits by Source
Users who voted for this posting