Announcement

Collapse
No announcement yet.

Zip Extract: An error occurred when creating the output file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Zip Extract: An error occurred when creating the output file?

    Hi. I tried to unzip a file and always get this error but I cant figure out the problem with it. The .zip is working fine if I unzip/open it in Winrar (created it with winrar).
    After searching a bit I thought it could be a problem with overwriting read only files or the destination (was in my documents) so I changed it to D:\MyFolder so I dont need any admin rights or something like that but I get the same error.

    Are newly created Winrar .zip files not working with AMS .zip Extract?
    /Update: I just tried Rightclick > Send To > Zip compressed folder in Win 8.1 and the same happens. I see a few files extracted (builtin status dialog) and then the error shows up.
    I will try to get the file which causes the error with a custom callback function. Hope this works.

    ---------------------------
    Fehler
    ---------------------------
    Beim Entpacken ist folgender Fehler aufgetreten:

    An error occurred when creating the output file.
    ---------------------------
    OK
    ---------------------------
    Bl4ckSh33p-Soft - Custom Software and Indie Games

  • #2
    It seems to work if the destination folder is empty and it works when I add a custom callback function.
    I used this:

    Zip.Extract(_SourceFolder.."\\myzip.zip", {"*.*"}, strInstalledPath, true, true, "", ZIP_OVERWRITE_ALWAYS, testcallback);

    PHP Code:
    function testcallback(StringPercentStatus)
    result Application.GetLastError();
    if 
    result ~= 0 then
        Dialog
    .Message("Notice"StringMB_OKMB_ICONINFORMATIONMB_DEFBUTTON1);
        return 
    false;
    else
        return 
    true;
    end
    end 
    Why does no error show up when I use this instead of "nil" (no callback function)
    Bl4ckSh33p-Soft - Custom Software and Indie Games

    Comment


    • #3
      Try to turn off your on-access antivirus scanner, then repeat and check if you still get the error.

      Ulrich

      Comment

      Working...
      X