Skip to content

Add zstd decompression support for NSIS archives#475

Merged
mcmilk merged 2 commits into
mcmilk:masterfrom
hshakula:master
Mar 24, 2026
Merged

Add zstd decompression support for NSIS archives#475
mcmilk merged 2 commits into
mcmilk:masterfrom
hshakula:master

Conversation

@hshakula

Copy link
Copy Markdown
Contributor

Add zstd magic detection to both solid and non-solid NSIS code paths in NsisIn.cpp. Add kZstd method type and wire up the existing ZstdDecoder for NSIS streaming decompression. Extend ZstdDecoder with ISequentialInStream, ICompressSetInStream, and ICompressSetOutStreamSize interfaces plus a Read() method, which the NSIS handler requires for incremental decompression.

Tested with NSIS installers built using the zstd compression option (both solid and non-solid modes).

Add zstd magic detection to both solid and non-solid NSIS code paths in
NsisIn.cpp. Add kZstd method type and wire up the existing ZstdDecoder
for NSIS streaming decompression. Extend ZstdDecoder with
ISequentialInStream, ICompressSetInStream, and ICompressSetOutStreamSize
interfaces plus a Read() method, which the NSIS handler requires for
incremental decompression.

Tested with NSIS installers built using the zstd compression option
(both solid and non-solid modes).
@hshakula hshakula marked this pull request as draft March 24, 2026 11:46
@hshakula hshakula marked this pull request as ready for review March 24, 2026 12:03
@sonarqubecloud

Copy link
Copy Markdown

@mcmilk mcmilk left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks a lot.

@mcmilk mcmilk merged commit 6146959 into mcmilk:master Mar 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants