Skip to content

Releases

v1.1

Choose a tag to compare

@ages2001 ages2001 released this 23 Nov 22:20

Changelog

All notable changes to the 7-Zip 26.06 legacy port are recorded here.
This port is an independent community effort and is not affiliated with or
endorsed by Igor Pavlov or the 7-Zip project.

v1.1 — 2026-11-16

Three themes: the port is rebased onto upstream 7-Zip 26.06, the Win32s
defects reported against v1.0 are fixed, and the native 16-bit editions now
run code tuned to the CPU they find, while still running on an original
8088/8086.

Upstream

  • Rebased to 7-Zip 26.06 (from 26.05). 26.06 improves support for split
    files created by the Linux split utility and fixes some bugs and
    vulnerabilities (upstream does not enumerate them or assign CVEs). The port's
    own modifications were re-applied on top; one upstream-touched file the port
    had also changed (CPP/Windows/FileFind.cpp) was three-way merged. The
    NT / 9x / Win32s and 32-bit DOS editions, which use the full upstream engine,
    carry all of these changes. The native 16-bit engine is built from the
    C/ core, which 26.06 did not change, so that engine is functionally
    identical to the 26.05 build (only its version string moved to 26.06).

Added

  • CPU-tiered LZMA/LZMA2 decode (extraction and testing) in the native 16-bit
    editions
    (the Windows 3.0/3.1x file manager and the real-mode DOS CLI). The
    decode engine is compiled four times — for the 8086, 80186, 80286 and 80386 —
    and the tool selects the best one for the machine at start-up. On a 386 or
    later the decoder uses 386 instructions (movzx/movsx, shld/shrd, setcc and
    selected 32-bit operations) the 8086 build cannot; the 186 and 286 builds use
    their own instruction sets; an 8088/8086 runs the original 8086 code. This
    speeds up extracting and testing archives on faster CPUs. The gain is moderate
    — the 16-bit code generator still keeps 32-bit values in register pairs, so
    this is not a full 32-bit recompile — and largest on a 386+.
    • Run-mode aware: the 32-bit (386) tier is used only where the upper halves of
      32-bit registers survive interrupts — real mode (DOS and Windows 3.0 real)
      and 386-enhanced mode. In 286-style standard mode the tool uses the top
      16-bit tier (286) instead — still faster than the baseline, with no
      32-bit-register hazard — even on a 386. The selected tier is
      min(detected CPU, run-mode cap).
    • Selection is automatic; the chosen CPU is shown in the DOS CLI banner and in
      the 16-bit file manager's title bar. SET Z7TIER=0 (0–3) caps the tier; it
      can only lower it, never raise it above what the CPU supports.
    • Verified on a 486 target: all four tiers decode LZMA and LZMA2 archives with
      matching CRCs, and automatic detection selects the 386 tier. The 8086
      baseline code path is unchanged from v1.0.
    • This covers the decode path (extract/test), the most common operation.
      LZMA encode, deflate, CRC and the hash algorithms still use the single 8086
      build on every CPU (a candidate for a later release, weighed against the
      real-mode memory budget since the DOS CLI keeps every tier resident).

Fixed

  • File manager (NT/9x/XP/Win32s) — dialogs and the file list now follow the
    Windows desktop colour scheme.
    The file list's mark mode (alternative
    selection) painted a fixed light-pink background behind marked rows with fixed
    text, which ignored the desktop theme and became unreadable on light, dark or
    high-contrast schemes. The marked-row colours are now derived from the live
    system colours on every repaint — the selection highlight blended toward the
    window colour, with the text colour chosen by luminance for guaranteed
    contrast — so marks follow whatever scheme is active and update immediately
    when it changes. The deleted-row text stays the conventional red but is drawn
    on the themed window background. In addition, WM_SYSCOLORCHANGE is forwarded
    to every child control (list view, status bar, rebar, combo), and the NT
    3.1/3.50 custom list view re-reads the system colours it was not given
    explicitly, so the whole window tracks a scheme change instead of keeping stale
    colours. All changes are gated behind Z7_LEGACY_WIN32; the native 16-bit and
    32-bit DOS editions are unaffected. (Verified live on Windows 98 under a
    dark/high-contrast scheme: the main window, the Options dialog, the selection
    highlight and the mark colours all render with the scheme's own colours and
    stay readable.)

  • Win32s — opening .gz (and other archives) failed with Error #80070001.
    Win32s rejects SetFilePointer when it is given a negative distance with a
    move method other than FILE_BEGIN (it returns ERROR_INVALID_FUNCTION,
    surfaced as 0x80070001). Backward seeks, which the gzip reader performs,
    therefore failed. CFileBase::Seek now resolves the current/end base
    position explicitly and re-issues the seek from FILE_BEGIN, so backward
    seeks work on Win32s. (Verified live on a Win32s guest: .gz archives now
    open and list their contents.)

  • Win32s — right-click context menus were unavailable. Win32s does not
    implement TrackPopupMenuEx (it fails with ERROR_CALL_NOT_IMPLEMENTED,
    error 120), so neither the file/folder item menu nor the detail-view column
    header menu appeared. The legacy build now calls TrackPopupMenu, and the
    list-view header is subclassed so a right-click on a column header raises
    WM_CONTEXTMENU. (Verified live on a Win32s guest: both the item menu —
    Open/Extract/Rename/Delete/Properties — and the header column-selection menu
    now open.)

  • Win32s — drag-and-drop of files onto the file manager did nothing.
    Win32s has no OLE IDropTarget delivery, so the existing RegisterDragDrop
    path never fired. The window now also registers for WM_DROPFILES via
    DragAcceptFiles, and dropped files are passed to the archive-compression
    flow. (Shell WM_DROPFILES drop path; built and code-verified.)

  • Win32s — the file manager loaded 7z.dll from the registry prefix without
    checking it existed.
    On systems where the registered install prefix is not
    the one the executable actually runs from, codec loading failed. The registry
    module-folder prefix is now adopted only when the main DLL (and the
    Codecs/Formats folders) are actually present there; otherwise the loader
    falls back to the executable's own directory. (Built and code-verified.)

  • Win32s / NT 3.1 — the 32-bit installer (and the NT/9x binaries) failed to
    load with a missing SHELL32.dll.ExtractIconExA import.
    Every GUI binary
    links the shell-association shim, which carried a direct call to the ANSI
    ExtractIconExA. ExtractIconExA is absent from the Win32s and NT 3.1
    shell32.dll, so the loader could not resolve the static import and refused to
    start the program. The owned ExtractIconExW already resolves the ANSI and the
    old ExtractIcon entry points through GetProcAddress for Win32s, NT 3.x and
    Win9x, so the redundant direct call was removed and no ExtractIconExA import
    is generated any more. (Verified with objdump -p: the import is gone from the
    installer, 7zFM, 7zG and the Win32s payload; the only remaining SHELL32
    imports — DragAcceptFiles, DragFinish, ShellExecuteW — exist on Win32s.)

  • Win32s — opening a file inside an archive raised a modal "unsupported path"
    dialog (twice) and the file did not open.
    The 8.3-name guard that protects
    FAT from silent truncation was applied to every file operation, including the
    reads, attribute queries and shell association look-ups that opening a file
    performs. Silent truncation can only corrupt data when a new name is
    created or an entry is renamed onto a colliding 8.3 name; opening, querying or
    deleting an entry already on disk carries no such risk (a genuinely long name
    is simply not found). The guard is now applied only to creation and rename
    targets — CreateFileA with a creating disposition, CreateDirectoryA,
    and the destinations of MoveFileA/CopyFileA — while opens, queries, deletes
    and source paths pass straight through to the native API. Viewing a file inside
    an archive (which extracts to an 8.3-safe temporary name and then opens it) no
    longer trips the dialog, and extracting a genuinely unrepresentable long name
    is still refused so the archive entry is never truncated. (Guard logic
    re-verified in isolation against the real temporary-path forms.)

Changed

  • Version strings bumped to v1.1 in the file-manager About box and in all
    four installers (dos16, dos32, win16, win32).

Known issues (investigated, not resolved in v1.1)

  • Native 16-bit file manager — protected-mode start-up fault on some
    Windows 3.x configurations.
    Traced to the Open Watcom C start-up
    (_cstart) touching the AUX character device while wiring up the standard
    streams, before WinMain runs; on protected-mode Windows 3.x that access can
    fault ("General failure reading device AUX"). This happens in the C runtime's
    start-up path, not in port code, and was not resolved by overriding the
    stream-setup hooks. Real-mode start-up is unaffected. Under investigation.

  • Native 16-bit — very large archive name tables. The native 16-bit engine
    addresses the UTF-16 file-name table within a single 16-bit segment, so an
    archive whose combined entry-name table exceeds the segment limit is rejected
    with a clear "insufficient memory" error rather than being opened. This is an
    inherent limit of the real-mode 8086 memory model; the 32-bit DOS and
    NT/9x/Win32s editions have no such limit. The graceful error is the intended
    behaviour.

v1.0 — 2026-11-04

  • Initial public release: four self-contained installers (dos16, dos32, win16,
    win32) covering 8088/8086 DOS and Windows ...
Read more

v1.0

Choose a tag to compare

@ages2001 ages2001 released this 06 Nov 12:52

Initial Release!