Search code examples
nsis

How to write exceptions or something like that in NSIS with the Zipdll plugin?


May somebody knows how to write IfErrors or something like that for Zipdll plugin.

ZipDLL::extractall "c:\test.zip" "c:\output" when for example you don't have enough space, or haven't got permission, does zipdll have a exit code or some way of checking for errors?


Solution

  • From its wiki page:

    On Success, the string "success" is on top of the stack, else an error message.

    ZipDLL::extractall "c:\test.zip" "c:\output"
    Pop $0
    ;$0 is now "success" or a error message...