4

Is there any Library in Delphi to handle LZMA (or 7zip)files including creating self extracting EXEs

There are some sources code at 7zip.orgin (c++ java c#) but i want them in delphi

BUT i want something which is stand alone (No DLLs)

Vibeeshan Mahadeva
  • 7,147
  • 8
  • 52
  • 102

5 Answers5

6

there are two solutions:

1) use the into native pascal translated sdk:

Pascal LZMA SDK

Source Download

2) you can compile the c version of the sdk into obj files and link them to your delphi project. this one requires a translation of the header files to delphi and it requires lots of c knowledge.

LZMA SDK

coding Bott
  • 4,287
  • 1
  • 27
  • 44
  • 3
    3) you can translate the current C lib to Pascal again, so that we don't have an old version in pascal anymore, and fix the x86isms while you at it for FPC's sake ( :-) ) – Marco van de Voort Dec 04 '10 at 12:14
3

Inno setup have delphi source code to encode and decode lzma.

http://www.jrsoftware.org/isdl.php

you could also simply use inno setup to create your self extractor.

Henri Gourvest
  • 989
  • 8
  • 12
2

try http://www.progdigy.com/?page_id=13 it might be what you need

2

JCL has JclCompression library which support 7zip and there's Delphi 7 Zip API both of them are open source project.

Mohammed Nasman
  • 10,992
  • 7
  • 43
  • 68
0

A patch for Delphi Zip that support both LZMA and Zip64 is ready: delphi-zip

Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132