[
  {
    "Id": "673700",
    "ThreadId": "273079",
    "Html": "\r\n<p><strong><span lang=\"EN\" style=\"font-size:12pt; color:black\">I used the library to create an SFX Ionic.Zip autorun, I want to run a command file PostExtractCommandLine .exe that is within the SFX. With the command DefaultExtractDirectory predefined place\r\n to extract SFX files and when to run the .exe I receive the following error in cmd:</span></strong></p>\r\n<p>&nbsp;</p>\r\n<p><strong><span style=\"font-size:12pt\">Command-Line Self Extractor generated by DotNetZip.</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">Extracting to C:\\Documents and Settings\\User Profile\\Application Data &lt;Existing file action: OverwriteSilently&gt;</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">nameDirectory/</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">nameDirectory/library.dll</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">nameDirectory/library1.dll</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">nameDirectory/application.exe</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">nameDirectory/vpn.exe</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">Running command: C:\\Documents and Settings\\User Profile\\Application Data\\application.exe</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">System.ComponentModel.Win32Exception &lt;0x80004005&gt;: The system cannot find the file specified\r\n</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">at System.Diagnostics.Process.StartWithShellExecuteEx&lt;ProcessStartInfo startInfo&gt;</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">at System.Diagnostics.Process.Start&lt;&gt;</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">at System.Diagnostics.Process.Start&lt;ProcessStartInfo startInfo&gt;</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">at Ionic.Zip.CommandLineSelfExtractor.Run&lt;&gt;</span></strong></p>\r\n<p><strong><span style=\"font-size:12pt\">&lt;ENTER&gt; to continue&hellip;</span></strong></p>\r\n<p>&nbsp;</p>\r\n<p><strong><span style=\"font-size:12pt\">This is my code:</span></strong></p>\r\n<p>&nbsp;</p>\r\n<p><strong><span style=\"font-size:12pt\"></p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre> <span style=\"color:blue\">public</span> <span style=\"color:blue\">void</span> CreateSFX(<span style=\"color:blue\">string</span> pPath, <span style=\"color:blue\">string</span> pNameFile, <span style=\"color:blue\">string</span> pFileToRun, <span style=\"color:blue\">string</span> pPathToExtract)\r\n        {\r\n            ZipFile zip = <span style=\"color:blue\">new</span> ZipFile();\r\n            zip.AddDirectory(pPath, System.IO.Path.GetFileName(pPath));\r\n            \r\n            SelfExtractorSaveOptions options = <span style=\"color:blue\">new</span> SelfExtractorSaveOptions();\r\n            options.ExtractExistingFile = ExtractExistingFileAction.OverwriteSilently;\r\n            options.Flavor = SelfExtractorFlavor.ConsoleApplication;\r\n            options.PostExtractCommandLine = pPathToExtract &#43; &quot;\\\\&quot; &#43; pFileToRun;\r\n            options.DefaultExtractDirectory = pPathToExtract;\r\n            options.Quiet = <span style=\"color:blue\">false</span>;\r\n            options.RemoveUnpackedFilesAfterExecute = <span style=\"color:blue\">true</span>;\r\n\r\n            zip.SaveSelfExtractor(pNameFile &#43; <span style=\"color:#a31515\">&quot;.exe&quot;</span>, options);\r\n        }<br>&nbsp;</pre>\r\n</div>\r\n</span></strong>\r\n<p></p>\r\n<p><strong><span style=\"font-size:12pt\">Thank you, Saylis<br>\r\n</span></strong></p>\r\n",
    "PostedDate": "2011-09-19T08:06:00.777-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674265",
    "ThreadId": "273079",
    "Html": "<p>It seems like the file you are trying to run (pFileToRun), does not exist.</p>\r\n<p>You need to make sure it exists.</p>",
    "PostedDate": "2011-09-20T09:46:07.37-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674278",
    "ThreadId": "273079",
    "Html": "<p><span id=\"result_box\" class=\"short_text\" lang=\"en\"><span class=\"hps\">Hello</span><span>, thanks</span> <span class=\"hps\">for your quick response. </span></span></p>\r\n<p>In my code (pFileToRun)&nbsp; is <strong><span style=\"font-size: 12pt;\">application.exe</span></strong></p>\r\n<p><strong><span style=\"font-size: 12pt;\"><br /></span></strong></p>",
    "PostedDate": "2011-09-20T10:08:40.99-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674714",
    "ThreadId": "273079",
    "Html": "<p>Yes, well, whatever the value is, YOU need to make sure it exists before trying to execute it.</p>",
    "PostedDate": "2011-09-21T07:15:43.6-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674730",
    "ThreadId": "273079",
    "Html": "<p><strong><span id=\"result_box\" class=\"long_text\" lang=\"en\"><span class=\"hps\">That is precisely the</span> <span class=\"hps\">problem,</span> <span class=\"hps\">the file exists,</span> <span class=\"hps\">I even go</span> <span class=\"hps\">to the road</span> <span class=\"hps\">where you have to</span> <span class=\"hps\">run</span> <span class=\"hps\">and that's the</span> <span class=\"hps\">file.</span> </span></strong></p>\r\n<p><strong><span id=\"result_box\" class=\"long_text\" lang=\"en\"><span class=\"hps\">The issue</span> <span class=\"hps\">is that the command</span> <span class=\"hps\">PostExtractCommandLine</span> <span class=\"hps\">not find</span> <span class=\"hps\">the file</span> <span class=\"hps\">and therefore</span> <span class=\"hps\">not</span> <span class=\"hps\">executed.</span></span></strong></p>\r\n<p><strong><span class=\"long_text\" lang=\"en\"><span class=\"hps\">Regards...<br /></span></span></strong></p>",
    "PostedDate": "2011-09-21T07:36:10.58-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674787",
    "ThreadId": "273079",
    "Html": "<p>Yes, well, the error that you get</p>\r\n<p><strong><span style=\"font-size: 12pt;\">System.ComponentModel.Win32Exception &lt;0x80004005&gt;: The system cannot find the file specified </span></strong></p>\r\n<p>...indicates that <strong>the file does not exist</strong>, your assertions notwithstanding.&nbsp;&nbsp;The computer knows whether the file actually exists, and it is telling you the file does not exist.</p>\r\n<p>You said you even go to \"the road\".&nbsp; I am not sure what a \"road\" is in this context.&nbsp; You need to figure out why your view disagrees with the view of the operating system. I suggest replacing your desired command with a \"dir\" command (you will need to specify \"%windir%\\system32\\cmd.exe /c dir ...\"&nbsp;as the command) or ls.exe or something like that, redirecting the output, so you can see the contents of the directory, where you believe the application.exe file to reside.</p>\r\n<p>The error you are experiencing is not the result of a problem or bug in the Dotnetzip library.&nbsp; It results from a problem with your usage of the library. You'll need to figure&nbsp;it out. The best help I can offer to you is a suggestion on how to diagnose it.</p>\r\n<p>Good luck.</p>",
    "PostedDate": "2011-09-21T09:07:33.183-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674834",
    "ThreadId": "273079",
    "Html": "<p><span class=\"hps\">I have</span> <span class=\"hps\">a similar problem.</span></p>\n<p><span class=\"hps\">In</span> <span class=\"hps\">my case,</span> <span class=\"hps\"> I extract</span> <span class=\"hps\">all files to</span> <span class=\"hps\">a specific folder</span><span>, the file</span> <span class=\"hps\">should</span> <span class=\"hps\">run automatically</span> <span class=\"hps\"> you must copy the</span> <span class=\"hps\">other</span> <span class=\"hps\">files</span> <span class=\"hps\">that are next</span> <span class=\"hps\">to him for</span> <span class=\"hps\"> another folder,</span> <span class=\"hps\">but this</span> <span class=\"hps\">does not work when</span> <span class=\"hps\">I use the</span> <span class=\"hps\">PostExtractCommandLine</span><span>.</span> <span class=\"hps\">If one command to extract&nbsp;</span><span class=\"hps\">and then</span> <span class=\"hps\">manually</span> <span class=\"hps\">run my</span> <span class=\"hps\"> main file</span><span>, everything is done</span> <span class=\"hps\">without any problems.</span> <span class=\"hps\">If I use the</span> <span class=\"hps\">automatic execution</span> <span class=\"hps\">function</span> <span class=\"hps\">does not work</span> <span class=\"hps\"> then</span> <span class=\"hps\">it is as if</span> <span class=\"hps\">it were running</span> <span class=\"hps\">in</span> <span class=\"hps\">a</span> <span class=\"hps\">temporary folder</span> <span class=\"hps\">or something,</span> <span class=\"hps\">because this</span> <span class=\"hps\"> does not see the</span> <span class=\"hps\">other</span> <span class=\"hps\">files.</span></p>\n<p><span class=\"hps\">I've done</span> <span class=\"hps\">several tests for</span> <span class=\"hps\"> to diagnose the problem and do not work.</span></p>\n<p><span class=\"hps\">Regards.</span></p>",
    "PostedDate": "2011-09-21T10:58:52.017-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674837",
    "ThreadId": "273079",
    "Html": "<p><span id=\"result_box\" lang=\"en\"><span class=\"hps\">I apologize for</span> <span class=\"hps\">my</span> <span class=\"hps\">poor</span> <span class=\"hps\">English</span>, I'm Latina. <span class=\"hps\">I</span>'ll try <span class=\"hps\">what</span> <span class=\"hps\">you suggested</span> <span class=\"hps\">and I will</span> <span class=\"hps\">comment</span>.<br /><br /> <span class=\"hps\">Thank you.</span></span></p>",
    "PostedDate": "2011-09-21T11:02:00.937-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674867",
    "ThreadId": "273079",
    "Html": "<p>it's no problem, there's no need to apologize about the english. &nbsp;I only wanted to explain that I did not know what you meant by \"go to the road.\"&nbsp;</p>",
    "PostedDate": "2011-09-21T12:16:05.647-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674877",
    "ThreadId": "273079",
    "Html": "<p><span id=\"result_box\" class=\"short_text\" lang=\"en\"><span class=\"hps\">When i said</span> <span class=\"hps\">\"</span></span>go to the road<span id=\"result_box\" class=\"short_text\" lang=\"en\"><span class=\"hps\">\"</span> <span class=\"hps\">i meant \"go to the path\"....</span></span><span id=\"result_box\" class=\"short_text\" lang=\"en\"><span class=\"hps\">the file path.</span></span></p>",
    "PostedDate": "2011-09-21T12:31:16.7-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "674915",
    "ThreadId": "273079",
    "Html": "<p>Ah, I see. that makes sense. I don't know why I didn't figure that out. In any case you'lll need to diagnose the problem yourself.</p>\r\n<p>It could be a problem with spaces in the directory path.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-09-21T13:34:05.383-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]