aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2019-03-27 16:30:17 +0100
committerTim Jenssen <tim.jenssen@qt.io>2019-03-28 09:23:57 +0000
commit90fa7c5317f7b7fc614db35b911dad047d95b21e (patch)
treebee90d742d3f085b20e3adb4a07e56fae83052bf
parent32fdd780f02b5c1063835e7165e9f0468c3a8d86 (diff)
check the right vcredist registry value key
msvc2015 and msvc2017 are compatible but everything greater or same 14.1 is a vcredist for msvc2017. So install it if the minor part is smaller then 1. Task-number: QTCREATORBUG-22204 Change-Id: I57572cecb41bd6ce1cebbc9cf3fded6f14f7d650 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
-rw-r--r--packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/installscript.qs6
-rw-r--r--packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/package.xml2
-rw-r--r--packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/installscript.qs6
-rw-r--r--packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/package.xml2
4 files changed, 8 insertions, 8 deletions
diff --git a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/installscript.qs
index 2a6cd1961..749434a6b 100644
--- a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/installscript.qs
+++ b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/installscript.qs
@@ -29,8 +29,8 @@
// constructor
function Component()
{
- // only install c++ runtime if it is needed, no minor version check of the c++ runtime till we need it
- if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\15.0\\VC\\Runtimes\\x64\\Installed") != 1)
+ // msvc2015 and msvc2017 are compatible but everything greater or same 14.1 is a vcredist for msvc2017.
+ if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x64\\Minor") < 1)
component.setValue("RequiresAdminRights", "true");
}
@@ -40,7 +40,7 @@ Component.prototype.createOperations = function()
// so that the simulator finds its fonts and applications find the simulator
component.createOperations();
- if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\15.0\\VC\\Runtimes\\x64\\Installed") != 1) {
+ if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x64\\Minor") < 1) {
// return value 3010 means it need a reboot, but in most cases it is not needed for run Qt application
// return value 5100 means there's a newer version of the runtime already installed
component.addElevatedOperation("Execute", "{0,3010,1638,5100}", "@TargetDir@\\vcredist\\vcredist_msvc2017_x64.exe", "/norestart", "/q");
diff --git a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/package.xml b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/package.xml
index 57ca644ca..5d8d51b1f 100644
--- a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/package.xml
+++ b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x64/meta/package.xml
@@ -2,7 +2,7 @@
<Package>
<DisplayName>VCRedist for MSVC 2017 64bit</DisplayName>
<Description>Visual C++ Redistributable Packages for Visual Studio 2017 64 bit</Description>
- <Version>2019-02-13-0</Version>
+ <Version>2019-02-13-1</Version>
<ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate>
<Script>installscript.qs</Script>
<Virtual>true</Virtual>
diff --git a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/installscript.qs
index a62b3913b..d71765a70 100644
--- a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/installscript.qs
+++ b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/installscript.qs
@@ -29,8 +29,8 @@
// constructor
function Component()
{
- // only install c runtime if it is needed, no minor version check of the c runtime till we need it
- if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\15.0\\VC\\Runtimes\\x86\\Installed") != 1)
+ // msvc2015 and msvc2017 are compatible but everything greater or same 14.1 is a vcredist for msvc2017.
+ if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x86\\Minor") < 1)
component.setValue("RequiresAdminRights", "true");
}
@@ -40,7 +40,7 @@ Component.prototype.createOperations = function()
// so that the simulator finds its fonts and applications find the simulator
component.createOperations();
- if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\15.0\\VC\\Runtimes\\x86\\Installed") != 1) {
+ if (installer.value("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x86\\Minor") < 1) {
// return value 3010 means it need a reboot, but in most cases it is not needed for run Qt application
// return value 5100 means there's a newer version of the runtime already installed
component.addElevatedOperation("Execute", "{0,3010,1638,5100}", "@TargetDir@\\vcredist\\vcredist_msvc2017_x86.exe", "/norestart", "/q");
diff --git a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/package.xml b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/package.xml
index 4d7306bff..ca9974501 100644
--- a/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/package.xml
+++ b/packaging-tools/configurations/pkg_templates/pkg_tools/qt.tools.vcredist_msvc2017_x86/meta/package.xml
@@ -2,7 +2,7 @@
<Package>
<DisplayName>VCRedist for MSVC 2017 32bit</DisplayName>
<Description>Visual C++ Redistributable Packages for Visual Studio 2017 32 bit</Description>
- <Version>2019-02-13-0</Version>
+ <Version>2019-02-13-1</Version>
<ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate>
<Script>installscript.qs</Script>
<Virtual>true</Virtual>