Qt World Summit: Register Today!

Qt Installer Framework - call script BEFORE start of update

  • Hi,

    i try to call a script BEFORE the update starts.
    I need to copy (backup) an existing file, before the update starts and overwrites the file.

    Here is the code i try, but i seems it is called too late because the update already removed the file:

    function Component()
        // default constructor
    Component.prototype.createOperations = function()
        component.addOperation("Copy", "@TargetDir@/database/live.db", "@TargetDir@/database/backup.db");


Log in to reply