{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "This powershell code works and produces a ~ 7GB zip file which extracts OK:\n \n[System.Reflection.Assembly]::LoadFrom(\"Ionic.Zip.dll\")\n$directoryToZip = \"E:\\VM\\Win7 Dev\"\n$zipfile = new-object Ionic.Zip.ZipFile\n$e = $zipfile.AddDirectory($directoryToZip)\n$zipfile.UseZip64WhenSaving = [Ionic.Zip.Zip64Option]::Always\n$zipfile.Save(\"E:\\Output\\Test.zip\")$zipfile.Dispose()\n \n \n \n \n \nWhen trying to create a spanned, self-extracting archive, this code runs fine:  \n \n[System.Reflection.Assembly]::LoadFrom(\"Ionic.Zip.dll\");\n$directoryToZip = \"E:\\VM\\Win7 Dev\";\n$outputFile = [IO.FileInfo] \"E:\\Output\\archive.exe\";\n$zipfile = new-object Ionic.Zip.ZipFile;\n$selfExtractOptions = New-Object Ionic.Zip.SelfExtractorSaveOptions\n$selfExtractOptions.Flavor = [Ionic.Zip.SelfExtractorFlavor]::ConsoleApplication\n$selfExtractOptions.DefaultExtractDirectory = $outputFile.Directory.FullName\n$selfExtractOptions.RemoveUnpackedFilesAfterExecute = $false\n$e = $zipfile.AddDirectory($directoryToZip)\n$zipfile.UseZip64WhenSaving = [Ionic.Zip.Zip64Option]::Always\n$zipfile.SaveSelfExtractor($outputFile.FullName, $selfExtractOptions)\n$zipfile.Dispose();\n \n \n...but when the generated archive.exe runs the error below is produced.\n \n[Window Title] E:\\Output\\archive.exe  [Content] E:\\Output\\archive.exe is not a valid Win32 application.  [OK]\n \n \nShould SaveSelfExtractor throw when MaxOutputSegmentSize is non-zero?",
    "LastUpdatedDate": "2013-02-21T18:43:32.08-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-05-23T05:42:17.923-07:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "SaveSelfExtractor and spanned archives",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 10918
  },
  "FileAttachments": [],
  "Comments": []
}