Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-683

Uninstaller related function are not triggered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • 2.0.0, 2.0.1, 3.1.0
    • 2.0.0
    • General
    • None

    Description

      My root component has script, which looks like this:

      function Component()
      {
      	installer.installationFinished.connect(this, register);
      
      	installer.uninstallationStarted.connect(this, unregister);
      	//installer.aboutCalculateComponentsToUninstall.connect(this, unregister);
      	//installer.finishedCalculateComponentsToUninstall.connect(this, unregister);
      }
      
      register = function()
      {
      	console.log("REGISTER");
      
      	if (installer.isInstaller()) {
      		var result = QMessageBox.question("reg.question", "Installer", "REGISTER!", QMessageBox.Yes | QMessageBox.No);
      		installer.execute("@TargetDir@/start.bat", ["-i","something.ini"]);
      	}
      }
      
      unregister = function()
      {
      	console.log("UNREGISTER");
      
      	if (installer.isUninstaller()) {
      		var result = QMessageBox.question("unreg.question", "Uninstaller", "UNREGISTER!", QMessageBox.Yes | QMessageBox.No);
      		installer.execute("@TargetDir@/start.bat", ["-u","something.ini"]);
      	}
      }
      

      The "unregister" part is never executed, no matter which uninstaller function I am connecting. The "register" function works fine.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            rth Roman Theuer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes