path: root/installerfw.pri
diff options
authorKatja Marttila <>2020-04-20 11:20:45 +0300
committerKatja Marttila <>2020-04-28 09:38:30 +0300
commit4f5eace163eeb34504cb8044c42b147df03fafed (patch)
tree8e953142cb3b798c4dbc99684aec912e7df49b08 /installerfw.pri
parenta05dc40daa16819823eeddb50a9fcc4656eb8f3b (diff)
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 <>
Diffstat (limited to 'installerfw.pri')
1 files changed, 1 insertions, 0 deletions
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)