LZMA SDK - Howto modify an archive in place?

  • Stefan Silvestru

    Hi there.

    I want to know if it's possible through the SDK to modify an archive (zip/rar), by adding a new file to it without extracting the archive first and then recreating the new archive; so just append a file to it…and if it's possible to point out an example, or how to do that (C/C++).

    Best regards,

  • Igor Pavlov

    Igor Pavlov - 2011-12-20

    1) LZMA SDK works only with 7z/XZ archives.
    2) 7-Zip can update ZIP archives, but can't update RAR archives.
    3) When you update ZIP archive, 7-Zip creates new ZIP file, and copies required files to new archive. It's safe way. So if your computer will be switched off during operation, you still will have correct copy of archive.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks