Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Installer Framework - call script BEFORE start of update
Forum Updated to NodeBB v4.3 + New Features

Qt Installer Framework - call script BEFORE start of update

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 300 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nando
    wrote on last edited by
    #1

    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");
    
        component.createOperations();
    }
    
    

    Greetings
    Nando

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved