Qt installer framework doesn't extract archives



  • 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.



  • 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...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.