Menu

How do I create a self extracting archive?

Help
2010-07-20
2012-12-07
  • Steve Bowles

    Steve Bowles - 2010-07-20

    How do I create a self extracting archive?

     
  • Vacon

    Vacon - 2010-07-20

    Hello everyone,

    well, it depends on wether you are willing to use GUI or command-line.
    GUI => right-click the file(s) to archive, from context-menu choose "7-Zip" -> "Add to archive…", on top give in path and archive-name, make your settings and mark "Create self-extracting archive on the right under "Options"
    => you are done
    Command-line:
    either 1)
    create an archive, if you didn't install 7-zip into your path copy "7z.sfx" or "7zCon.sfx" into the folder where the archive is, and create a file "config.txt" as described in 7z.chm (while we are at it => good idea to read it…) and type into a command-line:
    copy /b 7z.sfx + config.txt + your-created-archive.7z your-created-archive.exe

    or 2)
    open a command-line in the folder from where you want to archive the files and type (provided 7z.exe is in your path):
    7z a -sfx7z.sfx a.exe *
    and a self-extracting archive with Win32-GUI is created.
    For the lazy ones -> http://sfx-maker.sourceforge.net/ from http://7-zip.org/links.html

    Best regards!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.