Results 1 to 5 of 5

Thread: exepack

  1. #1
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts

    exepack

    As part of adding sfx support for my archive format, I made a standalone x64flt3/delta/plzma archiver.
    Then I thought that it can be used to bundle multifile apps into a single exe file, just as well.

    Loader stub unpacks app archive to a temp folder, then runs first executable there with current commandline.
    Temp folder is deleted on exit.

    http://nishi.dreamhosters.com/u/exepack_v0.7z
    Code:
    exepack c32|c64|w32|w64 exe-file|directory output-exe-file
    
    c32 = console 32-bit stub (19456 bytes)
    c64 = console 64-bit stub (22016 bytes)
    w32 = GUI 32-bit stub (won't create a console window for GUI app)
    w64 = GUI 64-bit stub
    
    Examples:
    
    exepack.exe w32 cmp.exe cmp1.exe -- pack a single GUI executable
    exepack.exe c32 ..\7zdll_x32 pa32.exe -- pack a directory

  2. The Following 7 Users Say Thank You to Shelwien For This Useful Post:

    Bulat Ziganshin (1st August 2018),comp1 (1st August 2018),encode (12th August 2018),load (1st August 2018),Mike (1st August 2018),Simorq (19th August 2018),xinix (5th August 2018)

  3. #2
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    I think it it better to use another name as this name was used by Microsoft.
    http://www.shikadi.net/moddingwiki/Microsoft_EXEPACK
    https://archive.codeplex.com/?p=exepack

  4. The Following 2 Users Say Thank You to roytam1 For This Useful Post:

    Bulat Ziganshin (1st August 2018),Mike (1st August 2018)

  5. #3
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    You can rename it.

    http://nishi.dreamhosters.com/u/exepack_v0a.7z
    + removed debug output of unpacked files in console stubs
    + added *f stubs for faster unpacking (30% faster for x86, 5% for x64, +10k to exe size)
    > executables in test/ are patched to do nothing for easier speed testing.

  6. The Following 3 Users Say Thank You to Shelwien For This Useful Post:

    load (2nd August 2018),Simorq (19th August 2018),xinix (5th August 2018)

  7. #4
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    http://nishi.dreamhosters.com/u/exepack_v1.7z

    - BUG: filenames with subdirs are not properly extracted (not fixed yet)
    + specify startup file on cmdline
    + merge console/GUI loader versions (switch subsystem on sfx generation)
    + set default dictionary to d27 for x64plzma
    + zstd compression (l22 d25) for fast extract
    + set "sfx" env variable to original exe path (to support custom sfx archives)
    + added archive size field in payload header (unlimited payload size (was 4M), won't load whole file)
    + change loader compression to upx (for *f,*z; better AV stats)

  8. The Following 7 Users Say Thank You to Shelwien For This Useful Post:

    Bulat Ziganshin (12th August 2018),kassane (22nd December 2018),load (13th August 2018),Mike (12th August 2018),Simorq (19th August 2018),xinix (12th August 2018),zeon (13th August 2018)

  9. #5
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    Here's a demo of how to make a rar sfx with exepack: http://nishi.dreamhosters.com/u/rarsfx_0.rar
    I guess somebody could make a cmix sfx or something, based on it.
    Note that archiver still has to be able to find its archive in a file with exe stub at start.

  10. The Following 2 Users Say Thank You to Shelwien For This Useful Post:

    Simorq (20th August 2018),xinix (13th August 2018)

Posting Permissions

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