summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrerich Raabe <raabe@froglogic.com>2016-06-21 13:35:35 +0200
committerKatja Marttila <katja.marttila@qt.io>2016-09-14 07:27:08 +0000
commitfc0b26f4d202776456ceca1be4206739a8be9247 (patch)
tree0d515b7ed57ff36c0cf55a759bbbb8932cc8ecd7 /tests
parente8af3a5aa0d6141635c4b24b98e1e10b3e85cb8d (diff)
Make support for modifying installations configurable
This patch introduces support for a new setting 'SupportsModify' in the config.xml file. This is only relevant for Windows installers. By default (i.e. when omitting) this setting, it defaults to 'true' which means that the product supports modifying (i.e. reconfiguring) an existing installations. As such, the 'Modify' button show in Windows' list of installed programs will be enabled. Setting this to 'false' will cause the button to be disabled. Change-Id: I4105f3f0bce67830aa2ee8ae0e6f6abb25c35b30 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/installer/settings/data/full_config.xml2
-rw-r--r--tests/auto/installer/settings/tst_settings.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/installer/settings/data/full_config.xml b/tests/auto/installer/settings/data/full_config.xml
index 1544961f5..272a1b0d7 100644
--- a/tests/auto/installer/settings/data/full_config.xml
+++ b/tests/auto/installer/settings/data/full_config.xml
@@ -57,4 +57,6 @@ File should contain all elements we allow in a config.xml
</Translations>
<ControlScript>controlscript.js</ControlScript>
+
+ <SupportsModify>true</SupportsModify>
</Installer>
diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp
index 07ff374a6..fc49f4ed8 100644
--- a/tests/auto/installer/settings/tst_settings.cpp
+++ b/tests/auto/installer/settings/tst_settings.cpp
@@ -90,6 +90,8 @@ void tst_Settings::loadTutorialConfig()
QCOMPARE(settings.translations(), QStringList());
QCOMPARE(settings.controlScript(), QString());
+
+ QCOMPARE(settings.supportsModify(), true);
}
void tst_Settings::loadFullConfig()