{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "",
    "ClosedDate": null,
    "CommentCount": 0,
    "Custom": null,
    "Description": "Hello, \nI am using Ionic.Zip 1.9.1.8 to create self extractor exe. And I am able to run them on 64 bit operating systems. But once I run the same (which has size under 4GB..lets say 2.8 GB), I get some times error telling cannot find compatible framework version not found. But if I install the .NET Framework 4.5 (I tried on Windows 7 ), then it throws SHIM error (which microsoft says gets thrown if you run an app which is build for \"x\" platform and trying to run on \"y\".\n \nThe latter looks to me like on specific conditions the extraction happens with 64 bit mode enabled (not sure though).\n \nZipFile zip = new ZipFile(); \nif (!IsOperatingSystem64Bit())\n {\n      zip.UseZip64WhenSaving = Zip64Option.Never;\n } else\n   {\n        zip.UseZip64WhenSaving = Zip64Option.Always;\n   }\n I did as above but it still not helping me and the sfx options also doesnt have anything useful. Strange thing is that everything works well in both 32bit OS and 64bit OS until the exe size is under 2GB. 32Bit takes a toll after that. Any thoughts would be helpful.\n\nNote: Same is posted under discussions also since there are no responses and couldn't find an option to move the post to issues, copied and pasted here.",
    "LastUpdatedDate": "2014-02-17T07:16:16.607-08:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Unassigned",
      "Severity": 0,
      "Id": 0
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2014-01-17T00:20:14.83-08:00",
    "Status": {
      "Name": "Proposed",
      "Id": 1
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Issue creating selfextractor exe with greater than 2GB and running it on 32bit OS",
    "Type": {
      "Name": "Unassigned",
      "Id": 5
    },
    "VoteCount": 1,
    "Id": 16654
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I encountered this problem before and the error message about the .Net Framework is a red-herring.  The real issue is the maximum size of an executable that a 32bit OS can run.\r\n\r\n2GB is the max size an executable can be on a 32 bit OS  4 GB is the max size of a 64 bit OS.\r\n\r\n\nThe compression setting didn't fix anything for me, since changing the compression standard just means that you can pack more data in a single executable file even if Windows can't do anything with it.\r\n\r\nOne solution I've looked at is having a launcher executable which is < 2GB and have the data be in a separate zip file.\r\n\r\nI hope this helps.  Maybe others have come up with better work arounds... it was over a year ago that I reported a similar problem on this site.\r\n\r\nDavid",
      "PostedDate": "2014-02-17T07:16:16.607-08:00",
      "Id": -2147483648
    }
  ]
}