public static void CreateBundle(string sOutputFile, string[] sInputFiles, string sComment) { if (System.IO.File.Exists(sOutputFile)) { System.IO.File.Delete(sOutputFile); } ZipArchive archive = new ZipArchive(new DiskFile(sOutputFile)); MemoryFolder folder = new MemoryFolder(); archive.TempFolder = folder; archive.BeginUpdate(); if (!string.IsNullOrEmpty(sComment)) { archive.Comment = sComment; } foreach (string str in sInputFiles) { if (System.IO.File.Exists(str)) { new DiskFile(str).CopyTo(archive.RootFolder, true); } } archive.EndUpdate(); }