running my installer gives the error "Cannot retrieve remote tree" error



  • I made a simple app with qtwidgets with my friends. I wish to create an installer. and I used IFW.
    I downloaded the exe from https://download.qt.io/official_releases/qt-installer-framework/3.0.1/ installed it.
    I copied the config file from the example
    and copied the package file from the example
    config is like this

    <?xml version="1.0" encoding="UTF-8"?>
    
    -<Installer>
    
    <Name>test</Name>
    
    <Version>1.0.0</Version>
    
    <Title>test Installer</Title>
    
    <Publisher>vendor devs</Publisher>
    
    <StartMenuDir>Super App</StartMenuDir>
    
    <TargetDir>@HomeDir@/InstallationDirectory</TargetDir>
    
    </Installer>
    

    the package is like this

    <?xml version="1.0" encoding="UTF-8"?>
    
    -<Package>
    
    <DisplayName>test</DisplayName>
    
    <Description>Install this example.</Description>
    
    <Version>0.1.0-1</Version>
    
    <ReleaseDate>2016-10-22</ReleaseDate>
    
    
    -<Licenses>
    
    <License file="license.txt" name="Beer Public License Agreement"/>
    
    </Licenses>
    
    <Default>true</Default>
    
    </Package>
    

    I moved all my files into package and ran

    C:\Qt\QtIFW-3.0.1\bin>binarycreator.exe -c test\config\config.xml -p test\packages\package.xml installer
    

    when I run the generated installer i get a "Cannot retrieve remote tree" error.

    what do I need to do? Please advice,

    Best Regards,
    Stevenson Lee


  • Moderators

    @stevenson

    Hi and welcome to devenet forum

    Have you tried to make an installer with the original example?
    Does that work?

    You seem to operate everything directly from command line. When you are using Qt creator anyway, you can simply open a .pro file and use it with "run qmake". This is a kind of awkward, but it does typically work.



  • @koahnig
    thank you so much for replying.

    I tried this example
    https://github.com/qtproject/installer-framework/tree/master/examples/tutorial
    I basically copied the directory and added my files into the package directory and tried running the binary creator to see if it does create an installer. It does create an installer but running the installer and pressing next results in the error "Cannot retrieve remote tree"

    I tried copying the tutorial itself and running the binarycreator again. it actually worked.

    The difference is that I removed the package structure inside the package directory. I only had 2 folders config and package and I specify the package.xml explicitly.

    In the tutorial it had a folder structure for package which is package<my_folder>\meta, the meta package should have the package.xml.
    then the package<my_folder>\data contains the files going to be installed.

    So what I did was try the same folder structure. I copied the contents of meta folder but editted the package.xml and used this package.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    -<Package>
    <DisplayName>test</DisplayName>
    <Description>Install this example.</Description>
    <Version>0.1.0-1</Version>
    <ReleaseDate>2016-10-22</ReleaseDate>
    -<Licenses>
    <License file="license.txt" name="Beer Public License Agreement"/>
    </Licenses>
    <Default>true</Default>
    </Package>
    

    I created the contents of the data files using windows-deploy qt. ( I followed this guide https://www.youtube.com/watch?v=8qozxqSZQEg ). the dll files were created. and so I copied all the contents into data folder.

    Afterwards, I ran the binary creator again:

    binarycreator.exe -c test\config\config.xml -p test\packages test-installer
    

    This actually solved my problem and allowed me to create a proper installer.

    however I'm still confused by the error I got earlier.
    Thanks again.

    Best Regards,
    Stevenson Lee


  • Moderators

    @stevenson

    Good to see that you have solved your problem.

    Unfortunately this is a user's forum with very little feedback on IFW questions.

    You might want to raise your questions on the developer's email list "development@qt-project.org". Typically developers with deeper insight are hanging around there.


Log in to reply
 

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