Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [IFW] How did'nt remove moved file from SimpleMoveFile operation on uninstalling
Forum Updated to NodeBB v4.3 + New Features

[IFW] How did'nt remove moved file from SimpleMoveFile operation on uninstalling

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 685 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sebastien247
    wrote on last edited by Sebastien247
    #1

    Hi,
    It's my first message on the forum.
    I'm a little lost with Qt Installer Framework.
    During the installation, I move shared files with SimpleMoveFile operation. During the uninstallation process, I need to not remove these files because it's common files used from other plugins. How I can bypass the deletion?
    Thanks

    Edit:
    Same problem here, but no solution: https://forum.qt.io/topic/81974/prevent-maintenance-tool-from-removing-copied-directories-during-uninstallation

    Edit2:
    Finaly I decide to create my own operation like that:

    #pragma once
    
    #include <UpdateOperation>
    
    class MoveNoUninstallOperation : public KDUpdater::UpdateOperation
    {
    public:
        explicit MoveNoUninstallOperation(QInstaller::PackageManagerCore *core = 0);
        ~MoveNoUninstallOperation();
    
        void backup();
        bool performOperation();
        bool undoOperation();
        bool testOperation();
    };
    
    

    But #include <UpdateOperation> is not found. I found no information on the documentation about the module to add in the .pro in QT var.

    Any help is welcom

    Edit3: No include file found for ifw installation folder or in Qt directory

    RatzzR 1 Reply Last reply
    0
    • S Sebastien247

      Hi,
      It's my first message on the forum.
      I'm a little lost with Qt Installer Framework.
      During the installation, I move shared files with SimpleMoveFile operation. During the uninstallation process, I need to not remove these files because it's common files used from other plugins. How I can bypass the deletion?
      Thanks

      Edit:
      Same problem here, but no solution: https://forum.qt.io/topic/81974/prevent-maintenance-tool-from-removing-copied-directories-during-uninstallation

      Edit2:
      Finaly I decide to create my own operation like that:

      #pragma once
      
      #include <UpdateOperation>
      
      class MoveNoUninstallOperation : public KDUpdater::UpdateOperation
      {
      public:
          explicit MoveNoUninstallOperation(QInstaller::PackageManagerCore *core = 0);
          ~MoveNoUninstallOperation();
      
          void backup();
          bool performOperation();
          bool undoOperation();
          bool testOperation();
      };
      
      

      But #include <UpdateOperation> is not found. I found no information on the documentation about the module to add in the .pro in QT var.

      Any help is welcom

      Edit3: No include file found for ifw installation folder or in Qt directory

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @sebastien247
      Did you try setting RemoveTargetDir to false in your config.xml ?

      --Alles ist gut.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sebastien247
        wrote on last edited by Sebastien247
        #3

        Thanks for your reply.
        I just tried and obtained the same result.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved