FreeArc-C Extraction DLL for Inno Setup
I'd like to introduce "FAExtract" - a lightweight DLL that provides FreeArc archive extraction for Inno Setup 7 and newer.
The project is built around
FreeArc-C and provides a Delphi-based interface between Inno Setup and the FreeArc extraction engine.
What it is
FAExtract is a management and integration layer for FreeArc extraction.
It handles archive queues, archive analysis, extraction workflow, progress tracking and communication with Inno Setup.
The actual archive processing is performed by the separate
unarc.dll from FreeArc-C. FAExtract dynamically loads this library and uses its modern C API -
unarc_run.
In other words, FAExtract does not reimplement FreeArc's extraction algorithms. It is specifically built on top of the FreeArc-C project.
What it can do
1) Archive management
- Add multiple archives to a queue and extract them sequentially.
- Specify a separate password for each archive.
- Add an entire archive or select a specific folder inside it.
- Analyze archives before extraction.
- Retrieve archive information, including original size, compressed size and file count.
2) Progress tracking
- Overall extraction progress across all queued archives.
- Individual progress for the currently processed archive.
- Processed file and byte counters.
- Current smoothed speed and average extraction speed.
- Estimated time remaining (ETA).
- Direct progress callback to Inno Setup.
3) Extraction control
- Pause and resume extraction.
- Cancel the current operation.
- Retrieve the current archive and file.
- Check the current operation state and error information.
4) Inno Setup integration
- Designed for Inno Setup 7 and newer.
- Uses a direct progress callback instead of timer-based progress polling.
- Includes a working example based on standard Inno Setup controls.
Technical snapshot
- DLL: FAExtract.dll
- Size: 135 KB
- Language: Delphi / Object Pascal
- Compiler: RAD Studio 13.2 Florence
- Architecture: Windows x64
- Host: Inno Setup 7 or newer (64-bit process)
- Extraction engine: FreeArc-C (unarc.dll)
- API: unarc_run
- License: GPL-2.0
The reported DLL size refers to FAExtract.dll only. The FreeArc-C extraction engine and any required external codecs are separate files.
Requirements
- FAExtract.dll
- unarc.dll from FreeArc-C
- arc.ini and external codec executables only when required by the compression methods used in the archives.
- A 64-bit Inno Setup process.
Examples and tests
The repository includes:
- A clean Inno Setup 7.x example demonstrating archive extraction and direct progress callbacks.
- SimpleCompression tests for archives without SREP.
- A test configuration using SREP + LZMA.
- A selective folder extraction test.
Development status
FAExtract is still under development. The main functionality has been implemented and tested, but not every possible archive configuration, compression method or external codec combination has been verified.
Compatibility also depends on the FreeArc-C build and the codecs required by a particular archive.
I'm not Microsoft - I can't test every possible configuration myself.
Feedback, bug reports and test results are welcome.
Project links
FAExtract - GitHub repository
FreeArc-C - extraction engine