Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtIFw: updateFinished does not called



  • Hi,

    can anybody tell me how to use the installer signal updateFinished()?
    My procedure is:

    • Install component with version 1.0
    • make an online repo with version 2.0
    • copy the entire repo into the local repository folder of the installation
    • do the update via maintenance.exe

    BUT the updateFinished() mtheod is never called.

    The following snippet does not work:

    function Component()
    {	
    	installer.installationFinished.connect(this, Component.prototype.deleteTempFiles); // works
    	installer.updateFinished.connect(this, Component.prototype.onupdateFinished); // does not work	
    }
    
    Component.prototype.onupdateFinished = function() {
    	Console.log("############## asssasasasaskbdfjkldbf");
    }
    
    Component.prototype.deleteTempFiles = function(){
    	var dir = installer.value("TargetDir");		
            /* [...] */
    }
    

    What i am doing wrong?

    Thank you for your help in advance.



  • @Schenk said in QtIFw: updateFinished does not called:

    BUT the updateFinished() mtheod is never called.

    How do you know its never called?

    @Schenk said in QtIFw: updateFinished does not called:

    Console.log("############## asssasasasaskbdfjkldbf");

    Where is the log printed?



  • @Ratzz

    @Ratzz said in QtIFw: updateFinished does not called:

    @Schenk said in QtIFw: updateFinished does not called:

    BUT the updateFinished() mtheod is never called.

    How do you know its never called?

    There is more code than in this example and so i know it, because nothing happens.

    @Schenk said in QtIFw: updateFinished does not called:

    Console.log("############## asssasasasaskbdfjkldbf");

    Where is the log printed?

    It should be in the log file and i think in the console.


Log in to reply