1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
# Inno Extract - A tool to unpack installers created by Inno Setup
[Inno Setup](http://www.jrsoftware.org/isinfo.php) is a tool to create installers for Microsoft Windows applications. Inno Extracts allows to extract such installers under non-windows systems without running the actual installer using wine. Inno Extract currently supports installers created by Inno Setup 1.2.10 to 5.4.3.
Inno Extract is available under the ZLIB license - see the LICENSE file.
## Contact
[Website](http://innoextract.constexpr.org/)
Author: [Daniel Scharrer](http://constexpr.org/)
## Dependencies
* **Boost 1.37** or newer
* **liblzma** from [xz-utils](http://tukaani.org/xz/) *(optional)*
For Boost you will need the headers as well as the `iostreams`, `filesystem`, `date_time`, `system` and `program_options` libraries. Older Boost version may work but are not actively supported. The boost `iostreams` library needs to be build with zlib and bzip2 support.
While the liblzma dependency is optional, it is highly recommended and you won't be able to extract most installers created by newer Inno Setup versions without it.
To build Inno Extract you will also need **CMake 2.8** and a working c++ compiler, as well as the development headers for liblzma and boost.
The [wiki page](http://innoextract.constexpr.org/wiki) might have more specific instructions for your linux distribution.
## Compile and install
To compile Inno Extract, run:
$ mkdir -p build && cd build && cmake ..
$ make
To install the binaries system-wide, run as root:
# make install
Build options:
* `USE_LZMA` (default: `ON`): Use *liblzma* if available.
* `CMAKE_BUILD_TYPE` (default: `Release`): Set to `Debug` to enable debug output.
* `CMAKE_INSTALL_PREFIX` (default: `/usr/local` on UNIX): Where to install Inno Extract.
* `DEBUG_EXTRA` (default: `OFF`): Expensive debug options
* `MAN_DIR` (default: `share/man`): Install location for man pages (relative to prefix).
Set options by passing `-D<option>=<value>` to cmake.
## Run
To extract a setup file to the current directory run:
$ innoextract <file>
A list of available options can be retrieved using
$ innoextract --help
Documentation is also available as a man page:
$ man 1 innoextract
## Limitations
* Inno Extract currently only supports extracting all the data. There is no support for extracting individual files, components or languages.
* Included scripts and checks are not executed.
* Data is always extracted to the current directory and the mapping from Inno Setup variables like the application directory to subdirectories is hard-coded.
* Inno Extract does not check if an installer includes multiple files with the same name and will continually overwrite the destination file when extracting.
* Names for data files in multi-file installers must follow the standard naming scheme.
* Encrypted installers are not supported.
A perhaps more complete, but windows-only, tool to extract Inno Setup files is [innounp](http://innounp.sourceforge.net/).
Extracting windows installer executables created by programs other than Inno Setup is out of the scope of this project. Some of these can be unpacked by the following programs:
* [cabextract](http://www.cabextract.org.uk/)
* [unshield](http://www.synce.org/oldwiki/index.php/Unshield)
## Disclaimer
This project is in no way associated with Inno Setup or [www.jrsoftware.org](http://www.jrsoftware.org/).
|