Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Self-extracting zip hanging at Overall Progress screen

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #20373 |

    I have created a very simple self-extracting zip with several files in it.  If I open the EXE with WinRAR or 7Zip I can see the folders/files correctly.  When I execute the EXE it goes through the intro screen and target folder selection steps properly.  But when it gets to the progress bar step it then hangs and consistently uses about 50% CPU.  I am developing in Windows 7 with Visual Studio 2008.  I have included the simplest steps below that I call in a “Utilities” project.  Is there a known issue or am I missing something else from the process of generating the file?



    public static ZipArchive CreateZip(string tempDir)


    string zipFileName = Guid.NewGuid().ToString(“N”) + “.exe”;

    DiskFile diskFile = new DiskFile(Path.Combine(tempDir, zipFileName));

    if (!diskFile.Exists)




    ZipArchive zip = new ZipArchive(diskFile);

    zip.DefaultCompressionMethod = Xceed.Compression.


    zip.AllowSpanning =


    // get the xceed bin file from the embedded resource

    using (Stream resourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(“abc.xcdsfx32_highestAvailable.bin”))


    XceedSfxPrefix sfx = new XceedSfxPrefix(new StreamFile(resourceStream));

    zip.SfxPrefix = sfx;


    return zip;


    public static void AddFile(byte[] fileContents, string fileName, AbstractFolder destinationFolder)


    MemoryFile memoryFile = new MemoryFile(@”RAM:\” + fileName);

    if (!memoryFile.Exists)




    using (Stream stream = memoryFile.OpenWrite(true))


    stream.Write(fileContents, 0, fileContents.Length);






    Imported from legacy forums. Posted by Richard (had 927 views)

    Xceed Support
    Post count: 5658

    Hi Richard, 

    Can you send us your sample application so that we investigate this in further detail.

    You can send it to support@xceed.com, please include a reference to this forum post with you email.


    Imported from legacy forums. Posted by Michel [Xceed] (had 1157 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.