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
12
votes
3 answers

How to create tar.gz file in C#

I have tried SevenZipLib and SevenZipSharp, but without success. Can someone give me a working example of archiving a text file to tar.gz, using any free library? I know it's not the best way to go for zipping, but it's a requirement I have.
Stavros
  • 5,802
  • 13
  • 32
  • 45
11
votes
3 answers

How would i use Sevenzipsharp with this code?

iv tried numerous different ways to get this to work and i got it to basicly work but i cant get the WaitForExit(); 's to work like they do here... so how would i convert this to work with sevenzip? cause i cant get it to work, and also i the SFX's…
NightsEVil
  • 507
  • 2
  • 13
  • 21
10
votes
2 answers

SevenZipSharp - compress memory stream

I am using SevenZipSharp in order to compress files into a zip file. Is there a way to use it to create a zip from a memory stream (meaning, load the file into the memory stream before)? Thanks, Maya.
Maya
  • 141
  • 1
  • 4
6
votes
1 answer

SevenZipSharp - how to compress multiple directories into a single file using c#?

I want to compress 3 folders into a single file using SevenZipCompressor . I know how to compress a single folder . Is such thing possible ?? Thank you !
subirshan
  • 323
  • 2
  • 7
  • 20
6
votes
1 answer

Using SevenZipSharp to compress in multi volumes?

I want to use SevenZipsharp to compress a file in volumes, for example to compress a file of 100 mb into 10 files of 10 mb each. We can do the same using 7zip.exe -volume parameter so... For example, when I compress in multi volumes using 7Zip I get…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
5
votes
4 answers

Can't load DLL while executing tests with MS-Test

In my program, I use SevenZipSharp to generate zip files. SevenZipSharp is a managed DLL which loads another DLL, 7z.dll. I am manually setting SevenZipSharp's path to 7z.dll using SevenZipCompressor.SetLibraryPath. When I execute my program in…
Jake Baker
  • 61
  • 1
  • 3
5
votes
3 answers

SevenZipArchiveException: Invalid archive. open/read error

I got the following error when I try to extract a zip file: "SevenZip.SevenZipArchiveException: Invalid archive: open/read error! Is it encrypted and a wrong password was provided? If your archive is an exotic one, it is possible that SevenZipSharp…
rocketman
  • 106
  • 1
  • 5
5
votes
2 answers

Why sfx sevenzipsharp '7-zip : unsupported method' when extract?

I have created hallo.7z and used 7zxSD_LZMA.sfx as module. I think my configuration is right but while extracting sfx I receive 7-zip : unsupported method void CreateExeFile() { try { SfxModule mdl = SfxModule.Extended; …
sloqye
  • 101
  • 1
  • 3
  • 11
4
votes
1 answer

SevenZipSharp - Append files to zip and remove file path

I am using SevenZipSharp in order to compress files into a zip file. I am having 2 issues: When using CompressFiles miltiple times on the same destination file it does not append the files, but overwrites them. I would like the files to be added…
Maya
  • 141
  • 1
  • 4
4
votes
2 answers

how to basically extract file with sevenzipsharp

I will extract files to usb from iso file with sevenzipsharp. For this, I download sevenzipsharp from vs nuget package manager and I coded (actually I couldn't :) ) this code . I dont take any error but It isnt working. Where do I make mistakes?…
Haydar ŞAHİN
  • 614
  • 1
  • 7
  • 12
3
votes
2 answers

How to create a compressed SFX file using SevenZipSharp?

I will understand how to create a SFX using SevenZipSharp library. First of all I need to say I can't find any property to set the compression level, and all of that. And when I try to make an SFX of a file, I get this error: "Object reference not…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
3
votes
1 answer

SevenZipSharp show current extracting file while doing extraction

I'm using vb.net and was wondering how to show what file is being extracted when extracting an archive. I've already have a workaround but it's "cheaty" and doesn't really display the current file that is extracting. Public Class Form1 Private…
2
votes
2 answers

How to add files to archive using SevenZipSharp

First of all what I want to do: I have a list of files I'd like to add to the same archive. The folder structure to this files should be included to the archive. The problem I have is that I can not add files to an existing archive. When I use…
wol
  • 21
  • 1
  • 3
2
votes
1 answer

How do I use 7zip in a .NET Core app running on Linux?

We've got a .NET Core app that was hosted in Azure Service Fabric. Now we are moving it to Linux-based Docker containers. We need to be able to create 7zip archives for an external service (one of those fancy "drop your files here via ftp"…
Sebastian Weber
  • 6,766
  • 2
  • 30
  • 49
2
votes
7 answers

detecting if a file is an archive using 7zip

I would like to use SevenZipSharp in order to determine if a file is an archive. I know that it's possible because in explorer if I rename a .zip to .bmp, 7zip still recognises it as an archive. --edit: In other words, I want 7zip to tell me if a…
Fidel
  • 7,027
  • 11
  • 57
  • 81
1
2 3 4 5 6 7