Announcement

Collapse
No announcement yet.

Delete Files/Folder on Cancel?

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

  • Delete Files/Folder on Cancel?

    Hi there...

    How can i delete Files/Folder on Cancel? I create a Global function called _delete(), add 4 files and if i Cancel on While Installing the first 3 will be deletet, but last file and created Folder won't. Where is my error?

    Code:
    function _delete()
    
    sCur = Folder.GetCurrent();
    
         Folder.DeleteTree(sCur .. "\\MyPath");
    
    end

  • #2
    You cannot delete files or folders while they are in use. For example, you cannot delete the current folder, or its parent, as it is being used by the current process.

    Ulrich

    Comment


    • #3
      Thx 4 reply Ulrich! Already test this Code and it show error on delete :( Do you have a other idea? Is it possible to break this action or goto after installing and try it from there?

      Comment


      • #4
        It would help if you actually state the error you are getting.

        Ulrich

        Comment

        Working...
        X