[
  {
    "Id": "446297",
    "ThreadId": "213545",
    "Html": "<p>Some info:<br> <br> Using PowerShell V2 (non x86)<br> Dev/Test machine: Win 7 (64 BIT)<br> Directory to Zip Size: ~ 25GB<br> <br> <br> This code works and produces a ~ 7GB zip file which extracts OK:</p>\r\n<div style=\"color:black;background-color:white\">\r\n<pre><span style=\"color:gray\">[</span><span style=\"color:teal\">System.Reflection.Assembly</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>LoadFrom(<span style=\"color:#a31515\">&quot;Ionic.Zip.dll&quot;</span>)<br><span style=\"color:orangered\">$directoryToZip</span> <span style=\"color:gray\">=</span> <span style=\"color:#a31515\">&quot;E:\\VM\\Win7 Dev&quot;</span><br><br><span style=\"color:orangered\">$zipfile</span> <span style=\"color:gray\">=</span> new<span style=\"color:gray\">-</span>object Ionic.Zip.ZipFile<br><span style=\"color:orangered\"><br>$e </span><span style=\"color:gray\">=</span> <span style=\"color:orangered\">$zipfile</span>.AddDirectory(<span style=\"color:orangered\">$directoryToZip</span>)\r\n<span style=\"color:orangered\"><br>$zipfile</span>.UseZip64WhenSaving <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">Ionic.Zip.Zip64Option</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>Always\r\n<span style=\"color:orangered\">$zipfile</span>.Save(<span style=\"color:#a31515\">&quot;E:\\Output\\Test.zip&quot;</span>)<br><span style=\"color:orangered\">$zipfile</span>.Dispose()<br></pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n<hr>\r\n<p>&nbsp;</p>\r\n<p>This code saves the file OK, but when the outputted archive.exe runs the error below is produced.</p>\r\n<div>\r\n<div style=\"color:black;background-color:white\">\r\n<pre><span style=\"color:gray\">[</span><span style=\"color:teal\">System.Reflection.Assembly</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>LoadFrom(<span style=\"color:#a31515\">&quot;Ionic.Zip.dll&quot;</span>);\r\n<br><span style=\"color:orangered\">$directoryToZip</span> <span style=\"color:gray\">=</span> <span style=\"color:#a31515\">&quot;E:\\VM\\Win7 Dev&quot;</span>;\r\n<span style=\"color:orangered\">$outputFile</span> <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">IO.FileInfo</span><span style=\"color:gray\">]</span> <span style=\"color:#a31515\">&quot;E:\\Output\\archive.exe&quot;</span>;\r\n<span style=\"color:orangered\"><br>$zipfile</span> <span style=\"color:gray\">=</span> new<span style=\"color:gray\">-</span>object Ionic.Zip.ZipFile;\r\n\r\n<span style=\"color:orangered\">$selfExtractOptions</span> <span style=\"color:gray\">=</span> New<span style=\"color:gray\">-</span>Object Ionic.Zip.SelfExtractorSaveOptions\r\n<span style=\"color:orangered\">$selfExtractOptions</span>.Flavor <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">Ionic.Zip.SelfExtractorFlavor</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>ConsoleApplication\r\n<span style=\"color:orangered\">$selfExtractOptions</span>.DefaultExtractDirectory <span style=\"color:gray\">=</span> <span style=\"color:orangered\">$outputFile</span>.Directory.FullName\r\n<span style=\"color:orangered\">$selfExtractOptions</span>.RemoveUnpackedFilesAfterExecute <span style=\"color:gray\">=</span> <span style=\"color:orangered\">$false</span>\r\n\r\n<span style=\"color:orangered\">$e </span><span style=\"color:gray\">=</span> <span style=\"color:orangered\">$zipfile</span>.AddDirectory(<span style=\"color:orangered\">$directoryToZip</span>)\r\n<span style=\"color:orangered\">$zipfile</span>.UseZip64WhenSaving <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">Ionic.Zip.Zip64Option</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>Always\r\n\r\n<span style=\"color:orangered\">$zipfile</span>.SaveSelfExtractor(<span style=\"color:orangered\">$outputFile</span>.FullName, <span style=\"color:orangered\">$selfExtractOptions</span>)\r\n\r\n<span style=\"color:orangered\">$zipfile</span>.Dispose();\r\n</pre>\r\n</div>\r\n</div>\r\n<div>Error when clicking on archive.exe:</div>\r\n<div>[Window Title]<br> E:\\Output\\archive.exe<br> <br> [Content]<br> E:\\Output\\archive.exe is not a valid Win32 application.<br> <br> [OK]</div>\r\n<div>\r\n<hr>\r\n</div>\r\n<div>Archive.exe is ~ 7GBs, so I thought perhaps the exe was too large and I also want the  zip to fit on DVDs so I used the MaxOutputSegmentSize property set to 700MBs. It saved OK but I got another error when running it:</div>\r\n<div>\r\n<pre><span style=\"color:orangered\">$directoryToZip</span> <span style=\"color:gray\">=</span> <span style=\"color:#a31515\">&quot;E:\\VM\\Win7 Dev&quot;</span>;<br><span style=\"color:orangered\">$outputFile</span> <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">IO.FileInfo</span><span style=\"color:gray\">]</span> <span style=\"color:#a31515\">&quot;E:\\Output\\archive.exe&quot;</span>;<br><span style=\"color:orangered\">$zipfile</span> <span style=\"color:gray\">=</span> new<span style=\"color:gray\">-</span>object Ionic.Zip.ZipFile;<br><br><span style=\"color:orangered\">$selfExtractOptions</span> <span style=\"color:gray\">=</span> New<span style=\"color:gray\">-</span>Object Ionic.Zip.SelfExtractorSaveOptions<br><span style=\"color:orangered\">$selfExtractOptions</span>.Flavor <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">Ionic.Zip.SelfExtractorFlavor</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>ConsoleApplication<br><span style=\"color:orangered\">$selfExtractOptions</span>.DefaultExtractDirectory <span style=\"color:gray\">=</span> <span style=\"color:orangered\">$outputFile</span>.Directory.FullName<br><span style=\"color:orangered\">$selfExtractOptions</span>.RemoveUnpackedFilesAfterExecute <span style=\"color:gray\">=</span> <span style=\"color:orangered\">$false</span><br><br><span style=\"color:orangered\">$e </span><span style=\"color:gray\">=</span> <span style=\"color:orangered\">$zipfile</span>.AddDirectory(<span style=\"color:orangered\">$directoryToZip</span>)<br><span style=\"color:orangered\">$zipfile</span>.UseZip64WhenSaving <span style=\"color:gray\">=</span> <span style=\"color:gray\">[</span><span style=\"color:teal\">Ionic.Zip.Zip64Option</span><span style=\"color:gray\">]</span><span style=\"color:gray\">::</span>Always<br><strong><span style=\"color:orangered\">$zipfile</span>.MaxOutputSegmentSize <span style=\"color:gray\">=</span> 734003200<br></strong><br><span style=\"color:orangered\">$zipfile</span>.SaveSelfExtractor(<span style=\"color:orangered\">$outputFile</span>.FullName, <span style=\"color:orangered\">$selfExtractOptions</span>)<br><br><span style=\"color:orangered\">$zipfile</span>.Dispose();<br></pre>\r\n</div>\r\n<div>Error when clicking on spanned archive.exe:</div>\r\n<div>[Window Title]<br> E:\\Output\\archive.exe<br> <br> [Content]<br> The version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.<br> <br> [OK]</div>\r\n<div><br> Any suggestions would be appreciated. What i'm trying to do is create a spanned self extracting ZIP from a large (many GBs) input directory.</div>",
    "PostedDate": "2010-05-22T20:55:25.323-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446366",
    "ThreadId": "213545",
    "Html": "<p>Hmm, a spanned self-extracting archive.</p>\r\n<p><a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/b2923f86-bc4a-7d64-381e-d7fbabdb5ed0.htm\">The documentation says</a>&nbsp;it is not possible</p>\r\n<p>&gt; You can save a split Zip file only when saving to a regular filesystem file. <strong>It's not possible to save a split zip file as a self-extracting archive</strong>,</p>\r\n<p>Seems like a bug that DotNetZip does not throw an exception when you try to create a spanned SFX.&nbsp; I'll create a work item for that.</p>",
    "PostedDate": "2010-05-23T05:38:18.613-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446368",
    "ThreadId": "213545",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=10918\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-05-23T05:42:19.617-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446454",
    "ThreadId": "213545",
    "Html": "<p>Ah thanks! Obviously I didn't read the entire documentation on that property.</p>\r\n<p>How about my second example where I'm not splitting the ZIP. The error is &quot;E:\\Output\\archive.exe is not a valid Win32 application.&quot;. Archive.exe was pretty big, about 7GBs. It seems like there is a limit to how big the self extracting EXE can be because when I take the same code and run it against a smaller input directory, the self extractor EXE works.</p>",
    "PostedDate": "2010-05-23T15:14:15.107-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446692",
    "ThreadId": "213545",
    "Html": "<p>You may be right that a SFX larger than a certain limit will not properly execute.</p>\r\n<p>I'll have to investigate that.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-05-24T09:09:59.323-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446693",
    "ThreadId": "213545",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=10924\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-05-24T09:10:47.617-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446695",
    "ThreadId": "213545",
    "Html": "<p>Can you clarify for me, where 64-bit OS is being used?&nbsp;</p>\r\n<p>on the creation of SFX - did you use a 64-bit OS there?</p>\r\n<p>on the extraction of the SFX - did you use a 64-bit version of Windows there?</p>",
    "PostedDate": "2010-05-24T09:11:37.7-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446790",
    "ThreadId": "213545",
    "Html": "<p>So I ran the code on my Windows 7 64bit Ultimate machine. The input directory to be zipped was local on that machine and the self extracting EXE was created and executed all on that same machine.</p>\r\n<p>Also I just tried the same code to create an SFX on Windows Server 2003 Enterprise 32BIT on a 22.9GB input folder. The output archive.exe file was 15GB and I get the following error when running it:</p>\r\n<p>---------------------------<br>C:\\Documents and Settings\\arisman1\\Desktop\\test\\archive.exe<br>---------------------------<br>C:\\Documents and Settings\\arisman1\\Desktop\\test\\archive.exe is not a valid Win32 application.</p>\r\n<p><br>---------------------------<br>OK&nbsp;&nbsp; <br>---------------------------</p>\r\n<p>The same code creates an SFX that works when created and executed on Windows Server 2003 Enterprise 32BIT on a smaller 22MB input folder.</p>",
    "PostedDate": "2010-05-24T12:47:36.467-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446820",
    "ThreadId": "213545",
    "Html": "<p>I read something earlier today that said there's a 4gb limit on Windows executable files (*.exe, *.dll, etc)&nbsp;for PE32 and PE32+ which applies to both 32-bit and 64-bit versions. You might be hitting this limit. I'll see if I can the page I was reading again...</p>\r\n<p>P.S. What does WinZip do if you try to create an SFX from the same files?</p>",
    "PostedDate": "2010-05-24T14:05:33.393-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446870",
    "ThreadId": "213545",
    "Html": "<p>Yes, that's what I was thinking, too.&nbsp; But I haven't figured out yet, how the DotNetZip SFX would interact with the PE spec.&nbsp; In an SFX, the zip data is just &quot;extra&quot; data tacked onto the PE file.&nbsp; It's not included formally into the PE data records.&nbsp;&nbsp; So I would think there would be no problem. But, your observations disagree with that.</p>\r\n<p>I need to look further.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-05-24T17:18:05.5-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "446878",
    "ThreadId": "213545",
    "Html": "<p>So I just tried winzip... WinZip is a little weird, first the zip must be created, then there is a tool in the winzip program files directory called WZSEPE32.EXE which creates a self extracting ZIP from an existing ZIP. It gave me an error when I selected my big 15GB zip file created with DotNetZip:</p>\r\n<p>---------------------------<br>WinZip Self-Extractor Personal Edition<br>---------------------------<br>This Zip file cannot be made into a .EXE File because the resulting EXE File would be greater than 2GB.<br>---------------------------<br>OK&nbsp; &nbsp;<br>---------------------------<br><br></p>",
    "PostedDate": "2010-05-24T18:03:45.283-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "659440",
    "ThreadId": "213545",
    "Html": "<p>I am receiving a similar problem. I suspect it is because the files are so massive (e.g. ~90GB, ~20GB). Windows gives: http://i.imgur.com/2nNPT.png</p>\r\n<p>It should be noted ZIP/RAR programs open the files just fine.</p>",
    "PostedDate": "2011-08-17T07:23:43.223-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]