Qt Installer Framework: Run additional commands at end.



  • Hello guys!

    I'm writing an installer to my project and I need to run a shell script after the user click "Finish".
    Someone have some idea about how to do that?

    I've made a lot of search on docs but found no clue... My only hope was the component.addOperation() but it does not execute nothing if it's put outside the "Component.prototype.createOperations"!

    What I've done so far on installscript.qs is:

    @
    function Component()
    {
    // constructor
    installer.finishButtonClicked.connect(this, runCommand);
    }

    ...

    Component.prototype.createOperations = function()
    {
    try {
    component.createOperations();
    } catch (e) {
    print(e);
    }
    }

    ...

    runCommand = function()
    {
    if(installer.status == QInstaller.Success)
    {
    //I need to run the command HERE!
    }
    }
    @

    Thanks in advance!



  • @rkhaotix
    How did you fix the subject? I have the same problem


Log in to reply
 

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