Questions tagged [sevenzipsharp]

C# implementation of the 7-Zip library.

This is a C# library that allows .NET developers to use 7-Zip compression and decompression as well as the encryption that goes with it.

GitHub project page: squid-box/SevenZipSharp.

94 questions
0
votes
0 answers

How to create a sfx with progressbar by sevenzipsharp in C#

I want to create a sfx file with C# WinForms. I have downloaded sevensharp from https://sevenzipsharp.codeplex.com . I could not get any step by step tutorial for this. Some similar question I got from stackoverflow and other site, but all didn't…
65656565656
  • 91
  • 1
  • 12
0
votes
1 answer

Decompress zip file directly from remote source

I want to store some data in zip format on Azure FileStorage. Can SevenZipSharp (especially the SevenZipExtractor class) work with URLs like https://myaccount.file.core.windows.net/shared1/folder1/data00054.zip instead of local file? I want to…
Arman Hayots
  • 2,459
  • 6
  • 29
  • 53
0
votes
1 answer

A SearchPattern contain multiple search pattern in SevenZipSharp

I use SevenZipSharp to compress my files and directories. I use the following code and it works well: var searchPattern = "*.txt"; compressor.CompressDirectory(directory, archiveName, password, searchPattern, recursion); Now, i want filter the…
Ramin Bateni
  • 16,499
  • 9
  • 69
  • 98
0
votes
0 answers

SevenZipSharp stop extracting

I have a problem. I'm using SevenZipSharp to extracting 7z directory and everything is working great, but during extraction I would like to have posibility to stop extracting but I can't do it. Extracting is doing in BusinessLogicProject, and after…
darson1991
  • 406
  • 6
  • 18
0
votes
0 answers

C# 7zip compress but not open

I used SevenZipSharp for compress my folders I have some code in c# SevenZipExtractor.SetLibraryPath(@"C:\Program Files\7-Zip\7z.dll");//x64 var cmpr = new SevenZipCompressor(); cmpr.CompressionFinished += (s, e) => { dof.DoFinishEvent(); cmpr =…
bigjoy10
  • 55
  • 1
  • 8
0
votes
1 answer

How to compress / decompress string with using SevenZip - 7Zip

There is so poor documentation so i am struggling to make this run I added dll files and proper references Finally it compresses string but giving error when i de-compress Can you tell me error is where ? public static string…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
0
votes
1 answer

How can I use sevenzipsharp to asynchronously unzip a list of archives and dispose of them correctly?

How can I use SevenZipSharp to asynchronously unzip a list of archives and dispose of them correctly? Here is what I'm looking at: Public Class SevenZipVB Private Shared extractors As New List(Of SevenZipVB) Private WithEvents _extractor As…
DontPanic345
  • 380
  • 3
  • 13
0
votes
1 answer

Sevenzip compressing event not firing

I have a winform app the uses the sevenzip.dll and implements it's abilities in order to compress an extract files and directories. My problem is that I want to use the compressing event of the sevenzip.compressor class in order to track the…
subirshan
  • 323
  • 2
  • 7
  • 20
0
votes
1 answer

SevenZipSharp code does not work an no exception raised

I am using C# and trying to use 7z to encrypt a single file into a new output archive. I succeeded in encrypting a whole folder but not a file. Here is the code that does not work (i.e. after running the code output directory has no .7z file and no…
EKanadily
  • 3,831
  • 3
  • 35
  • 33
0
votes
1 answer

sfx files do extract though input the wrong password

I have sfx files from the program that I created using sevenzipsharp library. still when I execute directly with double-click the file sfx if using the wrong password but still extract the files in it with a size of 0 bytes, if anyone should I add…
sloqye
  • 101
  • 1
  • 3
  • 11
0
votes
1 answer

7-zip extraction in C#

I have a folder containing a million zip files which I need to extract. Two ways I have tried: Way 1: Use the 7-zip exe file and System.Diagnostic Process as follows ProcessStartInfo p = new ProcessStartInfo(); p.FileName = "7za.exe" p.Arguments…
blue piranha
  • 3,706
  • 13
  • 57
  • 98
0
votes
1 answer

Extracting ISO files in 7z.dll- Out of Memory Exception

I have used two wrappers now to try to extract an ISO file. But no success I have tried sevenzipsharp and C-NET-Interface-for-7-Zip-Archive-DLLs But they both give this same Exception. The ISO file contains .vob files(movies) and the total size of…
electricalbah
  • 2,227
  • 2
  • 22
  • 36
0
votes
2 answers

How to compress PDF file using sevenzipsharper in c#?

I can compress a directory using the following code: string dll = @"D:\7z.dll"; string source = @"D:\sample"; string output = @"D:\My7zipped.7z"; SevenZipBase.SetLibraryPath(dll); SevenZipCompressor compressor = new…
ASHOK A
  • 1,966
  • 3
  • 17
  • 31
0
votes
1 answer

How can i specify string searchPattern using 7z compressor?

This is the methos im using for compress files: private void Compressions(string zipFile,string sources) { try { string zipFileName = zipFile; string source = sources; …
DanielVest
  • 823
  • 4
  • 20
  • 39
0
votes
0 answers

Using SevenZipSharp to extract bzip2 file add a needless tar extension to file, and can't get right archive informations?

Using following code to extracting a bzip2 file to a specified directory: string[] archive_files = null; using (SevenZip.SevenZipExtractor extrator = new SevenZip.SevenZipExtractor(source_file)); { extrator.ExtractArchive(dest_directory); …