Results 1 to 4 of 4

Thread: Auto-extractible compressed container

  1. #1
    Member
    Join Date
    Sep 2008
    Location
    France
    Posts
    856
    Thanks
    447
    Thanked 254 Times in 103 Posts

    Auto-extractible compressed container

    Hi

    I was recently asked
    to create a version of LZ4 compression utility for Windows
    capable to create auto-extractible archives.

    Although it's probably debatable if such an feature is useful or not,
    the point is i have about no clue where to start looking at it.
    So it looks an interesting matter to investigate

    Does it exist any kind of open-source library, preferably written in C,
    which would help either to create such an auto-extractible archive, or at least provide some hints on how all this could work ?

    My first idea was to look into something like UPX, for example.

  2. #2
    Member
    Join Date
    May 2008
    Location
    Germany
    Posts
    410
    Thanks
    37
    Thanked 60 Times in 37 Posts
    may be you should look at http://mattmahoney.net/dc/zpsfx101.cpp
    it is a self extracting archive stub for Windows to extract from zpaq-archives
    or at
    http://mattmahoney.net/dc/tiny_unzpaq.cpp - It is written by Matt Mahoney and released to the public domain.

  3. #3
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    There's really nothing special about making SFXes.
    You just need a file extractor, then archive data can be appended to it (eg. copy /b decoder.exe+archive.dat sfx.exe)
    and the decoder would have to read the data from its own file (eg. argv[0]) and maybe search for the start of archive
    by a signature.

    Though I guess it can be more complicated in case if you still don't have an integrated archive+compressor.
    Then the sfx exe can store the necessary files to temp first, and then run a script on itself from there.

    Also, for SFXes its likely the best idea to find VC6 somewhere - it can build the smallest executables.

  4. #4
    Member
    Join Date
    Sep 2008
    Location
    France
    Posts
    856
    Thanks
    447
    Thanked 254 Times in 103 Posts
    Thanks for the ideas and references.
    I'll look into them.

    Regards

Similar Threads

  1. Re: Useful compressed streaming properties
    By Shelwien in forum Data Compression
    Replies: 2
    Last Post: 2nd June 2012, 15:29
  2. Matlab Contest: Compressed Sensing
    By russelms in forum Data Compression
    Replies: 1
    Last Post: 28th April 2010, 22:48
  3. Dealing with container formats
    By subwolf in forum Data Compression
    Replies: 16
    Last Post: 2nd September 2009, 22:14
  4. BWT with compressed input data
    By Shelwien in forum Data Compression
    Replies: 3
    Last Post: 29th May 2009, 15:16
  5. Replies: 1
    Last Post: 13th May 2009, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •