Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Installer Framework: Run additional commands at end.
QtWS25 Last Chance

Qt Installer Framework: Run additional commands at end.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k Views
  • 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.
  • rkhaotixR Offline
    rkhaotixR Offline
    rkhaotix
    wrote on last edited by
    #1

    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!

    A 1 Reply Last reply
    0
    • rkhaotixR rkhaotix

      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!

      A Offline
      A Offline
      aliks-os
      wrote on last edited by
      #2

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

      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