Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt installer framework doesn't extract archives

Qt installer framework doesn't extract archives

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.0k 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.
  • D Offline
    D Offline
    DevAlone
    wrote on last edited by DevAlone
    #1

    I have created two packages and in second of them following config:

    <?xml version="1.0" encoding="UTF-8"?>
    <Package>
            <DisplayName>Example of courses</DisplayName>
            <Description>Examples for demonstrating capabilities of program</Description>
            <Version>0.1</Version>
            <ReleaseDate>2017-08-11</ReleaseDate>
            <Default>true</Default>
            <Script>installscript.qs</Script>
    </Package>
    

    and following script:

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

    But it just copies archive file(.zip) to @TargetDir@/subdir/
    TargetDir is program files if it does matter.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DevAlone
      wrote on last edited by
      #2

      I have found solution. Qt installer framework doesn't work with .zip. Archive must be 7z http://doc.qt.io/qtinstallerframework/ifw-component-description.html#data-directory
      So stupid mistake...

      1 Reply Last reply
      2

      • Login

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