Skip to content

Add self-extracting example project - #442

Closed
piksel wants to merge 2 commits into
masterfrom
zipsfx
Closed

piksel wants to merge 2 commits into
masterfrom
zipsfx

Conversation

@piksel

@piksel piksel commented Apr 11, 2020

Copy link
Copy Markdown
Member

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

@piksel piksel mentioned this pull request Apr 11, 2020
@piksel

piksel commented Aug 15, 2020

Copy link
Copy Markdown
Member Author

This should be simplified as a "sdk" project before merging

@piksel piksel linked an issue Nov 22, 2020 that may be closed by this pull request
@piksel

piksel commented May 13, 2021

Copy link
Copy Markdown
Member Author

I am getting quite skeptical about this... The concept isn't that complicated, you can just append a .ZIP to the end of an executable, which can then treat itself as a zip file and extract the contents. This works because zipfiles end with the "header", and .EXE files start with their header.

The problem with using SharpZipLib for this is that if you reference either the .csproj (as this sample currently does), or the nuget package, you get an additional .dll in the output folder. What is the point of a self-extrating pair of files? But OK, you can use ilmerge to combine them into a single assembly, but then there's the next problem... The overhead is ~320kb. Compare that to using something like 7z SFX, which is ~200kb with much greater performance and compression ratio...

@codecov

codecov Bot commented May 13, 2021

Copy link
Copy Markdown

Codecov Report

Merging #442 (6f248b4) into master (232d690) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #442   +/-   ##
=======================================
  Coverage   71.89%   71.89%           
=======================================
  Files          62       62           
  Lines        7667     7667           
=======================================
  Hits         5512     5512           
  Misses       2155     2155           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 232d690...6f248b4. Read the comment docs.

@piksel

piksel commented Aug 12, 2021

Copy link
Copy Markdown
Member Author

Closing this due to the above stated reasons.

@piksel piksel closed this Aug 12, 2021
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.

Self extracting Exe

1 participant