Results 1 to 4 of 4

Thread: Qt Installer Framework: Documentation about using scripts is wrong?

  1. #1
    Join Date
    Oct 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Installer Framework: Documentation about using scripts is wrong?

    Hello, everybody!

    I want to use Qt Installer Framework for deployment my application.

    I downloaded master-branch Qt Installer Framework and build it with Qt 4.8.3.

    The Qt Installer Framework documentation is informed of the possible use scripts to manage the installation.

    I took a example from directory 'examples/tutorial', edited script 'examples/tutorial/packages/com.vendor.product/meta/installscript.qs' (like in documentation):

    Qt Code:
    1. function Component()
    2. {
    3. component.userInterface( "IntroductionPage" ).buttons.NextButton.click;
    4. }
    5.  
    6. Component.prototype.isDefault = function()
    7. {
    8. // select the component by default
    9. return true;
    10. }
    11.  
    12. Component.prototype.createOperations = function()
    13. {
    14. try {
    15. // call the base create operations function
    16. component.createOperations();
    17. } catch (e) {
    18. print(e);
    19. }
    20. }
    To copy to clipboard, switch view to plain text mode 

    Make installer using binarycreator. At start of installation get error:

    Qt Code:
    1. TypeError: Result of expression 'component.userInterface( "IntroductionPage" )' [null] is not an object.
    To copy to clipboard, switch view to plain text mode 

    Why such a wrong example given in the documentation?!

    Also, I found script 'auto_installations_script.qs' in sources of Qt Installer Framework, which demonstrated automation proccess installation, but not works in realy.

    Release Qt Installer Framework 1.2 works with scripts like master-branch version.

    Question to a respected public: anyone used Qt Installer Framework in their projects? Did you use scripts to manage the installation process?

  2. #2
    Join Date
    May 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Installer Framework: Documentation about using scripts is wrong?

    Hello Bobby.Rock,

    unfortunately I am at the same stage now. Using 1.3 Windows binary and having exactly the same (and furthermore some other) problems with the IFW. Did you meanwhile manage the problem? I think the documentation is absolutely to short for people starting with QT QTScript and never used an installer before.

  3. #3
    Join Date
    May 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Installer Framework: Documentation about using scripts is wrong?

    Really guys? Nobody is using the QT IFW?

    I made an InnoSetup Installer in just a few hour. So I will use InnoSetup now.

  4. #4
    Join Date
    Jan 2016
    Posts
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Installer Framework: Documentation about using scripts is wrong?

    Can Inno setup be used in other platforms as well?

Similar Threads

  1. QtWebKit and scripts?
    By LDel001 in forum Qt Programming
    Replies: 0
    Last Post: 23rd October 2011, 18:44
  2. Execute Python Scripts from QT C++?
    By Muhammad.Ammar in forum Newbie
    Replies: 1
    Last Post: 4th March 2009, 23:14
  3. Adding Qt's documentation to Xcode documentation browser
    By fabietto in forum Qt Programming
    Replies: 0
    Last Post: 10th June 2007, 16:38
  4. How to run shell scripts ?
    By npc in forum Qt Programming
    Replies: 5
    Last Post: 22nd May 2006, 12:59
  5. QSA: loading scripts at runtime
    By seneca in forum Qt Programming
    Replies: 0
    Last Post: 15th February 2006, 16:19

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.