[
  {
    "Id": "229336",
    "ThreadId": "67474",
    "Html": "<p>I am receiving the following error when attempting to download a self-extracting exe file that was created with the DotNetZip library. &quot;Microsoft IE Execute shell has stopped working&quot;.&nbsp; This happens if I try to open the file from the website versus right clicking on the exe file and saving the file.</p>",
    "PostedDate": "2009-08-31T07:38:37.447-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "229475",
    "ThreadId": "67474",
    "Html": "<p>Are you saying that if you right click and select &quot;Save As...&quot; the file is successfully saved, and can be opened?</p>\r\n<p>And if you do not right-click and select &quot;Save As...&quot;, then you get the error?</p>\r\n<p>Can I see the server-side code that you use to generate the zip file ?</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-08-31T13:54:00.087-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "229539",
    "ThreadId": "67474",
    "Html": "\r\n\r\n<div class=Section1>\r\n\r\n<p class=MsoNormal>I am saying that when I click on a link to the exe file, it\r\nit trying to be opened.  Then this error mention earlier occurs.</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>Here is the code:</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>    Public Function\r\nGenerateOutputZipFile(ByVal ProjectId As Integer, ByVal strFilePath As String)\r\nAs Boolean</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>        Dim ProjectInfo\r\nAs New Business.ProjectInfo</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>       \r\nGenerateOutputZipFile = False</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>       \r\nProjectInfo.GetProjectInformation(ProjectId)</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>        Dim dirInfo As\r\nNew DirectoryInfo(strFilePath)</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>        If dirInfo.Exists\r\nThen</p>\r\n\r\n<p class=MsoNormal>           \r\nUsing zip As ZipFile = New ZipFile()</p>\r\n\r\n<p class=MsoNormal>               \r\nFor Each dirInfo In dirInfo.GetDirectories()</p>\r\n\r\n<p class=MsoNormal>                   \r\nIf Not dirInfo.Name = &quot;Orders&quot; And Not dirInfo.Name =\r\n&quot;tmpOrders&quot; Then</p>\r\n\r\n<p class=MsoNormal>                       \r\nDim fFile As FileInfo</p>\r\n\r\n<p class=MsoNormal>                       \r\nFor Each fFile In dirInfo.GetFiles(&quot;*&quot;)</p>\r\n\r\n<p class=MsoNormal>                           \r\nzip.AddFile(strFilePath & dirInfo.Name & &quot;\\&quot; &\r\nfFile.Name, dirInfo.Name)</p>\r\n\r\n<p class=MsoNormal>            \r\n           Next</p>\r\n\r\n<p class=MsoNormal>                   \r\nEnd If</p>\r\n\r\n<p class=MsoNormal>               \r\nNext</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>               \r\nGenerateOutputZipFile = True</p>\r\n\r\n<p class=MsoNormal>               \r\nzip.SaveSelfExtractor(strFilePath & &quot;Output.exe&quot;,\r\nSelfExtractorFlavor.WinFormsApplication, &quot;C:\\Modernfold Project\r\nManager\\&quot; & ProjectInfo.ProjectName & &quot; (&quot; &\r\nProjectInfo.ProjectNumber & &quot;)&quot;)</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>           \r\nEnd Using</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>        End If</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>        ProjectInfo =\r\nNothing</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>    End Function</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>Jason Rush<br>\r\nProgrammer<br>\r\nModernfold, Inc.</p>\r\n\r\n<p class=MsoNormal>317.468.6743 - Office</p>\r\n\r\n<p class=MsoNormal>317.448.6571 - Cell</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n</div>\r\n\r\n",
    "PostedDate": "2009-08-31T19:22:38.597-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "229541",
    "ThreadId": "67474",
    "Html": "<p>Ah, ok.</p>\r\n<p>The code you use to generate the file looks reasonable.</p>\r\n<p>What if you click &quot;Save as....&quot;. then what?&nbsp; Does it work?</p>\r\n<p>Your app does a bunch of things, one is &quot;produce a SFX&quot; and another is &quot;download a file via the browser&quot;.&nbsp;&nbsp; I think you need to decouple these things (and maybe other things) to figure out where the problem lies.&nbsp;&nbsp; If you run the SFX on the server machine, where it was produced, does it run successfully?</p>\r\n<p>If you transfer that file via some mechanism other than the browser to the client machine, and then run it, does it work?&nbsp;&nbsp; What if you use Firefox instead of IE to do the transfer?</p>\r\n<p>and so on. . .</p>",
    "PostedDate": "2009-08-31T19:28:56.907-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "229542",
    "ThreadId": "67474",
    "Html": "\r\n\r\n<div class=Section1>\r\n\r\n<p class=MsoNormal>If you click save as and save to the local system then click\r\nrun… it works.  I was wanted to be able to click on a hyperlink to the\r\nfile, then click open and have it extract to the local “client”\r\ncomputer.</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n<p class=MsoNormal>Jason Rush<br>\r\nProgrammer<br>\r\nModernfold, Inc.</p>\r\n\r\n<p class=MsoNormal>317.468.6743 - Office</p>\r\n\r\n<p class=MsoNormal>317.448.6571 - Cell</p>\r\n\r\n<p class=MsoNormal> </p>\r\n\r\n</div>\r\n\r\n",
    "PostedDate": "2009-08-31T19:31:18.403-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "229566",
    "ThreadId": "67474",
    "Html": "<p>I understand.</p>\r\n<p>With that information, it is obvious that the problem is not in the generation of the SFX/ZIP file, it is in the <em>transfer </em>of the file.&nbsp; The SFX file is correct and works fine.&nbsp; Something goes wrong when you transfer it and then try to run it.&nbsp;&nbsp;&nbsp;</p>\r\n<p>There are sevevral possibilities. First, the SFX requires the .NET Framework v2.0 (or later) on the client machine. Have you verified that is the case?&nbsp; IF there is no .NET Framework on the browser machine, running the exe will fail.&nbsp; I don't know how it will fail because I don't have a machine to test it on.&nbsp; But it will fail. In this case the exe may be received correctly and intact on the client machine, but it is still useless because the necessary pre-requisites are not present.</p>\r\n<p>Another possibility is that the file is being corrupted during transmission.&nbsp; If I were troubleshooting this I would hook up Fiddler to the browser to see if everything was downloading correctly.&nbsp; check the length of the transfer.&nbsp;&nbsp; You may also have a cached copy of a corrupted version of the SFX file in the IE Cache.&nbsp; In this case you will get the same bad result repeatedly.&nbsp; Clearing the IE cache (Tools...Internet Options...Delete Browsing History)&nbsp; would solve it, if this is your problem.</p>\r\n<p>Maybe you might try to map the .exe extension to an HttpModule (.ashx) that directly supports the download of the file.</p>\r\n<p>Definitely does not sound like a DotNetZip problem though.&nbsp; Good luck.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-08-31T21:04:51.02-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "252617",
    "ThreadId": "67474",
    "Html": "<p>Hi,</p>\r\n<p>I&nbsp;am geting a Secutiry Exception when I try to download the SFX just clicking on the it in IE. I can download the file using save as traget option, and the file after downloads runs 100% without an error.</p>\r\n<p>How to set the security permissions to download the file. Is&nbsp;this an IE settings issue ????</p>\r\n<p>&nbsp;</p>\r\n<p>Regards</p>\r\n<p>Riaz Afridi</p>",
    "PostedDate": "2009-11-02T17:12:26.087-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]