Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-842

[Windows] Cannot remove a folder from an external drive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 2.0.1
    • General
    • Windows 7

      When trying to delete a folder in an external drive/memory stick with Delete operation with elevated rights the installer gives error:

      [20052] Operation 'Delete' with arguments: 'd:\tmp\testfolder\' failed: Cannot create backup of d:\tmp\testfolder\: Cannot open d:\tmp\testfolder\ for input
      

      And with Rmdir operation it fails without an error code:

      [27824] Operation 'Rmdir' with arguments: 'd:\tmp\testfolder\' failed: Could not remove folder d:\tmp\testfolder\:
      

      Both operations work if the folder is on C: drive. Also a single file can be deleted from an external drive. Giving full access rights to every user doesn't change the outcome.

      Tested on Windows 7 with

      Component.prototype.createOperations = function() {
          try{
          var dir = "c:\\tmp\\testfolder";
          component.addElevatedOperation("Delete", dir);
          var dir2 = "d:\\tmp\\testfolder";
          component.addElevatedOperation("Delete", dir2);
          }
          catch(e){
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            installerteam Installer Team
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes