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

Calling installerbase.exe / maintenancetool.exe with Windows CMD repeatably hang and never return

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 2.0.3, 2.0.5, 3.1.0
    • General
    • None
    • Windows 10

    Description

      I'm using Windows command prompt to automate the maintenancetool.exe with various commands and scripts, and without any UI interaction. One of my requirement is that I need I need to get the maintenancetool verbose output from the cmd stdout.
      It happens very regularly that my call never returns and shows a command prompt dialog saying "Press any key to continue..."

      I've been able to reproduce the issue by simply calling the following within the Windows CMD:

      "C:\Qt\QtIFW2.0.5\bin\installerbase.exe" -v --version > stdout.txt

      The issue doesn't happen at all times so you will need to run this command within a loop from a batch file. I'm using the following:
      =======================
      echo off
      SET /a i=0

      :loop
      IF %i%==1000 GOTO END
      echo This is iteration %i%.
      "C:\Qt\QtIFW2.0.5\bin\installerbase.exe" -v --version > stdout.txt
      SET /a i=%i%+1
      GOTO LOOP

      :end
      echo
      =======================

      I've also figured out that it's a lot easier to reproduce with more complex commands than --version such as --check-updates or – script

      This issue only happens on Windows 10. I've never been able to reproduce it on Windows 7 or 8.1

      Attachments

        Issue Links

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

          Activity

            People

              arttu.tarkiainen Arttu Tarkiainen
              studiobods Matthias Baudot
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes