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

Maintenance tool is unable to undo "CopyDirectory" operations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 4.4.2
    • Building, Scripting, Tools
    • None
    • Windows

    Description

      I'm using online installer. The Appdata/Roaming/MyAppData files are removed during update.
       
      I tried to "hack" it just with copying files at the beginning of updating process, and put it back at the end:
       

      var sourceDir = installer.value("HomeDir") + "/AppData/Roaming/MyAppData";
      var destDir = installer.value("HomeDir") + "/AppData/Roaming/MyAppDataBackUp";
      var val = installer.performOperation("CopyDirectory",[sourceDir,destDir,"forceOverwrite"]);  

       
       
      Installation log (see part - undo operation):
       

      [294] programfiles: C:\Program Files
      [294] programfiles: C:\Program Files
      [294] perform  operation: CopyDirectory
      [294] - arguments: C:/Users/micha/AppData/Roaming/MyAppData, C:/Users/micha/AppData/Roaming/MyAppDataBackUp, forceOverwrite
      [294] Done
      [294] undo  operation: CopyDirectory
      [294] - arguments: C:/Users/micha/AppData/Roaming/MyAppData, C:/Users/micha/AppData/Roaming/MyAppDataBackUp, forceOverwrite
      [294] Done

       

      Attachments

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

        Activity

          People

            installerteam Installer Team
            michalkuc Michal Kuc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes