From 4f5eace163eeb34504cb8044c42b147df03fafed Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Mon, 20 Apr 2020 11:20:45 +0300 Subject: Answer queries from command line Standard input is possible in Windows only in console application. This change makes installers to be console applications by default. If started as gui from command line, console is released and application is restarted so cmd.exe won't be waiting for application to finish. If started from explorer, console is launched but released immediately. This may be seen on screen with short console flash. Using command line interface messagebox strings and possible answer values for it are printed to console. Answers must be given in case sensitive format as StandardButton QMetaEnum is utilized when reading button values. This ensures that if StandardButtons are added/removed/changed the code continues to work. Also added a new option 'default-answer' which will answer the questions with default button values without user interaction. Task-number: QTIFW-1739 Change-Id: I710f921f5c927dbd13090af32f93656dded84e72 Reviewed-by: Arttu Tarkiainen --- installerfw.pri | 1 + 1 file changed, 1 insertion(+) (limited to 'installerfw.pri') diff --git a/installerfw.pri b/installerfw.pri index 901d8ffa9..ad2369d4d 100644 --- a/installerfw.pri +++ b/installerfw.pri @@ -116,6 +116,7 @@ CONFIG(static, static|shared) { QT += concurrent network qml xml } CONFIG += depend_includepath no_private_qt_headers_warning c++11 +win32:CONFIG += console exists(".git") { GIT_SHA1 = $$system(git rev-list --abbrev-commit -n1 HEAD) -- cgit v1.2.3