7zip file progression
Hello, how can I get the extraction progression of a 7z file from my WinForms app?
50 Replies
Show what you have currently $paste
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
For my ZipManager
Can you get 7-zip to print progress information?
I'm currently trying that and I think I can but then I'll need to get the informations from the console
Reading from console is easy
As long as you have something to write to console
it seems there is no progression information
do you think this is applicable to 7z files ?
https://stackoverflow.com/questions/26571057/extract-zipfile-using-c-sharp-with-progress-report
Stack Overflow
Extract ZipFile Using C# With Progress Report
Can anyone tell me if it is possible(and give an example if it is) on how to have a progress bar(and status label if possible) showing the progress of a ZIP file being extracted using "ZipFile"(Ion...
7zip and zip are completely different formats
but ZipFile support .rar ?
Afaik yes, but not 7z
but if I convert the 7z to a zip... ?
Then sure?
I found nothing on internet to do that locally
That'll work
Maybe I need to include LZMA SDK to my project and edit it to show progress
https://7-zip.org/sdk.html
Why not just zip it as a normal zip?
'cause it's on internet and the diff between zip (1.8Go) and 7z (600Mo) is incredible
so it's better downloading with 7z
I guess you can convert it? But that requires either using libraries or reading up on the format and do the conversion yourself
hummm
https://github.com/adoconnection/SevenZipExtractor
This does exist
But it's fairly old
not very old
2 years for a zip format isn't old I think
It might not come with a progress though
Hummm I'll check
I'm not alone 😄
https://github.com/adoconnection/SevenZipExtractor/issues/55
GitHub
Progress event · Issue #55 · adoconnection/SevenZipExtractor
I already tried, and I can unzip LZMA2 files without problem. But how can I have a Progress?
I think I found then 😄
thanks :)
@Citizen of Pluto I think it's no longer possible to get the progression
oh thanks 😄
how can I import this into my project as a dependency?
like a dll or something like that
You compile it
how do I compile 😅
compile to which format*
(exe, dll... ?)
@Citizen of Pluto
dll
do you have a tutorial or smth like that ?
@Citizen of Pluto
just type
dotnet build --configuration Release
in the console and when in the root directory of said projectokay
it generated this
Which one should I use?
@Citizen of Pluto
type it when in SevenZipExtractor directory (not tests)
okay thanks
oh okay I was in main
I should use netstandard2.0 or net45?
netstandard
Depends on what SDK you use
Do you use .NET (Core or Standard) or .NET Framework?
let me check...
.NET Framework 4.7.2
so ?
net45
@Citizen of Pluto
netstandard 2.0
x64 and x86 contains the 7z's dll
@Paulem. @Citizen of Pluto this may be more viable
does it has the progression?
actually wait this might not wrap 7z.dll, but instead be it's own impl
no problem
I just want to decompress with a progress bar
oh it's good for 7z
but is it for progress?
I'll admit I didn't look for that first
may have jumped the gun 😅
I almost implemented the version with SevenZipExtractor
if it works then I keep it