{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 33089.  First bin release&#58; v1.8.3.23. ",
    "ClosedDate": "2009-06-14T17:58:17.427-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "The self-extractor has a command line option to overwrite existing files (-o).\nHowever this doesn't work when those files have a read-only flag, and it fails with the following message:\n \n--------------------------------------------------------------------------------\nFailed to extract entry File.txt\n-- System.UnauthorizedAccessException: Access to the path 'C:\\Temp\\File.txt' is denied.\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\n   at System.IO.File.Delete(String path)\n   at Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password)\n   at Ionic.Zip.ZipEntry.Extract(String baseDirectory, Boolean overwrite)\n   at Ionic.Zip.SelfExtractor.Run()\n--------------------------------------------------------------------------------",
    "LastUpdatedDate": "2013-05-16T05:32:18.96-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-06-11T18:46:25.72-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Self-extractor \"overwrite\" option doesn't overwrite readonly files",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 7881
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Hmm, ok, I didn't test that case.  I guess you think the self-extractor ought to overwrite readonly files. Let me have a think on that.",
      "PostedDate": "2009-06-13T12:23:16.763-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Thanks.\r\n\r\nHere's a common scenario where the problem arises:\r\n\r\n1. You package a folder that contains some readonly files\r\n2. You run the self-extractor once, which extracts everything to folder X\r\n3. Note the read only flags have been preserved by the zipping/unzipping process\r\n4. You run the self-extractor again, which extracts everything to the same folder X\r\n5. It fails because it cannot overwrite the readonly files created in step 2\r\n",
      "PostedDate": "2009-06-14T16:13:54.053-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-06-14T17:58:17.427-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:15.05-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:18.96-07:00",
      "Id": -2147483648
    }
  ]
}