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

Execute Operation Fails When Paths Have Space Characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.3, 3.1.0
    • Component/s: General
    • Labels:
      None
    • Environment:
      Windows 7 Home Premium SP1
      Qt IFW 2.0.1

      Description

      I attempted to have my installer's component script add a firewall exception using the netsh utility on Windows. If any of the arguments I pass to the Execute operation contain spaces (even if they are correctly enclosed in double quotations) the operation fails.

      Component script that fails:

      component.addOperation( "Execute",
      "netsh", "advfirewall", "firewall", "add", "rule",
      "name=\"Has Space\"", //!< Fails due to space, even tho its in quotes
      "dir=in", "action=allow",
      "program=\"C:\\bad folder\\wtf.exe\"", //!< Fails due to space, even tho its in quotes
      "enable=yes" );
      

      Error message from installer:

      I have verified this operation will succeed if there are no spaces in the arguments.

        Attachments

        1. ExecErr.PNG
          ExecErr.PNG
          24 kB
        2. output.txt
          18 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            installerteam Installer Team
            Reporter:
            aaronjaques Aaron Jaques
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes