61623

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

Question:

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?

Answer1:

From its <a href="http://nsis.sourceforge.net/ZipDLL_plug-in" rel="nofollow">wiki page</a>:

<blockquote>

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

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

Recommend

  • CoreData basics – to-many relationship array data
  • Eloquent Relationship on Partial Match
  • auth.provider is not set to 'password' when user signs-in with email and password
  • Swift Initialization Rule Confusion
  • Spark (Scala) Writing (and reading) to local file system from driver
  • XMLBeans Duplicate Class and Class Not Found Errors
  • How to Save JSON data to SQL server database in C#?
  • ZipList with Scalaz
  • Creating a Multidimensional, Associative Array in VBScript
  • Ubuntu and bcrypt
  • How to synchronize jQuery dialog box to act like alert() of Javascript
  • DIV instruction jumping to random location?
  • Django model inheritance, filtering models
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Using JRuby with Rails 3.2
  • Creating Java object from class name with constructor, which contains parameters [duplicate]
  • Code in Job's Script Block after Start-Process Does not Execute
  • how to avoid repetitive constructor in children
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • Transactional Create with Validation in ServiceStack Redis Client
  • How to match http request and response using Jersey ContainerRequestFilter and ContainerResponseFilt
  • Is there a way to do normal logging with EureakLog?
  • How to set ini file attributes during an Inno install
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • Email format validation in mvc3 view
  • Splitting given String into two variables - php
  • Deselecting radio buttons while keeping the View Model in synch
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • How to add date and time under each post in guestbook in google app engine
  • Obtain ObjectIdHex value from mgo query
  • Deserializing XML into class C#
  • JSON with duplicate key names losing information when parsed
  • Jquery - Jquery Wysiwyg return html as a string
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • 0x202A in filename: Why?
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • coudnt use logback because of log4j
  • How does Linux kernel interrupt the application?
  • python draw pie shapes with colour filled
  • How to Embed XSL into XML