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. QIF installer.execute() is killed after app uninstallation
Forum Updated to NodeBB v4.3 + New Features

QIF installer.execute() is killed after app uninstallation

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 115 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.
  • advmA Offline
    advmA Offline
    advm
    wrote on last edited by advm
    #1

    Hi, I have problem with executing command while uninstalling the application.
    I am trying with simple pwd command.

    If I run the command before uninstallation is started, it works and installer.execute() returns error code 0. But If I run the command on the last Finished page(after uninstallation) the command is killed and it returns error code 9. This is an example with my approach in controlscript.js:

    // Before uninstallation 
    Controller.prototype.ReadyForInstallationPageCallback = function()
    {
        if (installer.isUninstaller()) {
            let result = installer.execute("pwd");
            QMessageBox.warning("quit.question", "Result", result, QMessageBox.Ok);
        }
    }
    
    // After uninstallation
    Controller.prototype.FinishedPageCallback = function ()
    {
        if (installer.isUninstaller()) {
            let result = installer.execute("pwd");
            QMessageBox.warning("quit.question", "Result", result, QMessageBox.Ok);
        }
    }
    

    This is from the command on ReadyForInstallationPageCallback:
    Screenshot 2024-03-31 150726.png

    And this is from the execution on FinishedPageCallback :
    Screenshot 2024-03-31 150941.png

    The same approach is for windows/linux, but it is successful and both results are 0.

    Any ideas why is this problem on macOS or suggestions to avoid this 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