Commit 62fed3c4 authored by Tim Jenssen's avatar Tim Jenssen
Browse files

install x86 vcredist only if it is necessary

Change-Id: I7d3b3aa35ceef3502c6b4250b60a572631a117be
Reviewed-by: default avatarKai Koehne <>
Reviewed-by: default avatarEike Ziller <>
Reviewed-by: default avatarTim Jenssen <>
parent 9e2caea3
......@@ -157,7 +157,14 @@ Component.prototype.createOperations = function()
"@StartMenuDir@/Qt Creator.lnk",
"workingDirectory=@homeDir@" );
component.addElevatedOperation("Execute", "{0,3010,1638}", "@TargetDir@\\lib\\vcredist_msvc2010\\vcredist_x86.exe", "/norestart", "/q");
// 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\\10.0\\VC\\VCRedist\\x86\\Installed") != 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,1638,3010,5100}", "@TargetDir@\\lib\\vcredist_msvc2010\\vcredist_x86.exe", "/norestart", "/q");
if (component.userInterface("AssociateCommonFiletypesForm").AssociateCommonFiletypesCheckBox
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment