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. How to extract only specific files and folders of a package in Qt Installer Framework (QtIFW)?
Forum Updated to NodeBB v4.3 + New Features

How to extract only specific files and folders of a package in Qt Installer Framework (QtIFW)?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 649 Views
  • 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.
  • A Offline
    A Offline
    akhi95
    wrote on last edited by
    #1

    Let's say my application "MyApp" has a package "pkg1". In pkg1, there are 5 folders and 5 files. I know using the below piece of code I can extract the whole data folder of pkg1 into my specified folder during installation:

    Component.prototype.createOperationsForArchive = function(archive)
    {
        component.addOperation("Extract", archive, "@TargetDir@/pkg1");
    }
    

    But I do not wish to copy all 5 folders and 5 files. I wish to copy, say specific 3 folders and 3 files from it. This is because pkg1 has files folders for both Linux and Windows. During Windows installer creation, I need 3 files and 3 folders. During Linux installer creation, I need 4 files and 4 folders (some files folders are common on both platforms). I cannot maintain two separate file folder structure.

    Please suggest if this is possible with QtIFW or not. And if not, then what workaround should I follow that would be less time-consuming in building it.

    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