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

installer.execute doesn't behave the same way on Windows and Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 3.2.0
    • Scripting
    • None
    • Linux/Wayland

    Description

      I customized my installer to make it able to do an automatic uninstallation when the user override a previous installation. To do that I have to launch the maintenance binary that is in the target folder.

      I use the simple following code on Windows:

      installer.execute("\"" + dir + "/maintenancetool.exe\"", "--script=" + dir + "/scripts/auto_uninstall.js");
      

      When on Linux I need to do:

      installer.execute("sh", ["-c" , "\"" + dir + "/maintenancetool\" --script=\"" + dir + "/scripts/auto_uninstall.js\""]);
      

      It was pretty hard and long to figure that execute function on linux only accept few shell commands and how I have to pass the arguments.

      I am expecting to same behavior or a least a better documentation with precise examples of what is working and what is not.

       

      I think that this issue may also affect the operation "Execute" (launch with addOperation and performOperation).

      Attachments

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

        Activity

          People

            installerteam Installer Team
            flamaros Xavier Bigand
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes