MSFTCompression.Core.Cab

Rene Moergeli 1 Reputation point
2021-12-11T10:14:20.887+00:00

Wondering why to create a Cab file from a folder takes very long.

24 minutes compared to 3 minutes e.g. using 7-Zip to created a 7z file or File Explorer "Send to/Compressed (zipped) folder.

CabInfo cabToPack = new CabInfo(cabDestinationFile);
cabToPack.Pack(cabSourceDir, true, Microsoft.Deployment.Compression.CompressionLevel.Max, null);
Developer technologies | Windows Presentation Foundation
Developer technologies | .NET | .NET Runtime
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-12-11T17:29:40.653+00:00

    Take a look at the SevenZipSharp NuGet package maybe you can use that with your app.

    https://www.nuget.org/packages/Squid-Box.SevenZipSharp/

    https://github.com/squid-box/SevenZipSharp


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.