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

Execute Operation Fails When Paths Have Space Characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 2.0.3, 3.1.0
    • 2.0.1
    • General
    • None
    • 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

            installerteam Installer Team
            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