diff --git a/installer/installbuilder/project.xml b/installer/installbuilder/project.xml index e429d21ec..c0698e055 100644 --- a/installer/installbuilder/project.xml +++ b/installer/installbuilder/project.xml @@ -17,7 +17,10 @@ qt5-binaries.xml - vcredist.xml + vcredist-x86.xml + + + vcredist-x64.xml diff --git a/installer/installbuilder/vcredist-x64.xml b/installer/installbuilder/vcredist-x64.xml new file mode 100644 index 000000000..7df71b972 --- /dev/null +++ b/installer/installbuilder/vcredist-x64.xml @@ -0,0 +1,72 @@ + + vcruntime64 + Visual Studio 2017 x64 Redistributables + 0 + 1 + 1 + + + vcredist + ${installdir}/vcredist + vcredist64 + windows + + + 0 + ${installdir}/vcredist/vcredist_x64.exe + /install /quiet /norestart + Installing Visual Studio 2017 x64 Redistributables + 0 + + + windows + + + equals + ${architecture} + 64 + + + + + Installation of MS Visual Studio 2017 x64 Redistributables failed! +Error Code: ${program_exit_code} +Check if another version was already installed and if not, try to run the installer manually from +${installdir}\vcredist\ + +The installation will now continue, but swift might not work properly. If this is the case, raise a bugreport on https://dev.swift-project.org with the error code, you received. + + + + does_not_equal + ${program_exit_code} + 0 + + + + + does_not_equal + ${program_exit_code} + 1638 + + + + + + + ../../dist/vcredist/vcredist_x64.exe + + + + + + + windows + + + equals + ${architecture} + 64 + + + diff --git a/installer/installbuilder/vcredist-x86.xml b/installer/installbuilder/vcredist-x86.xml new file mode 100644 index 000000000..3414acecc --- /dev/null +++ b/installer/installbuilder/vcredist-x86.xml @@ -0,0 +1,72 @@ + + vcruntime32 + Visual Studio 2017 x86 Redistributables + 0 + 1 + 1 + + + vcredist + ${installdir}/vcredist + vcredist32 + windows + + + 0 + ${installdir}/vcredist/vcredist_x86.exe + /install /quiet /norestart + Installing Visual Studio 2017 x86 Redistributables + 0 + + + windows + + + equals + ${architecture} + 32 + + + + + Installation of MS Visual Studio 2017 x86 Redistributables failed! +Error Code: ${program_exit_code} +Check if another version was already installed and if not, try to run the installer manually from +${installdir}\vcredist\ + +The installation will now continue, but swift might not work properly. If this is the case, raise a bugreport on https://dev.swift-project.org with the error code, you received. + + + + does_not_equal + ${program_exit_code} + 0 + + + + + does_not_equal + ${program_exit_code} + 1638 + + + + + + + ../../dist/vcredist/vcredist_x86.exe + + + + + + + windows + + + equals + ${architecture} + 32 + + + diff --git a/installer/installbuilder/vcredist.xml b/installer/installbuilder/vcredist.xml deleted file mode 100644 index 3595ef7d8..000000000 --- a/installer/installbuilder/vcredist.xml +++ /dev/null @@ -1,87 +0,0 @@ - - vcruntime - Visual Studio 2017 Redistributables - 0 - 1 - 1 - - - vcredist - ${installdir}/vcredist - vcredist - windows - - - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86 - Version - vcruntimeversionx86 - - - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64 - Version - vcruntimeversionx64 - - - 0 - ${installdir}/vcredist/vcredist_x86.exe - /install /quiet /norestart - Installing VC++ 2017 32 Bit Runtime - 0 - - - ${installdir}/vcredist/vcredist_x86.exe - - - greater - v14.15.26706.0 - ${vcruntimeversionx86} - - - - - 0 - ${installdir}/vcredist/vcredist_x64.exe - /install /quiet /norestart - Installing VC++ 2017 64 Bit Runtime - 0 - - - ${installdir}/vcredist/vcredist_x64.exe - - - greater - v14.15.26706.0 - ${vcruntimeversionx64} - - - - - Installation of MS Visual Studio 2017 Redistributables failed! -Error Code: ${program_exit_code} -Check if another version was already installed and if not, try to run the installer manually from -${installdir}\vcredist\ - -The installation will now continue, but swift might not work properly. If this is the case, raise a bugreport on https://dev.swift-project.org with the error code, you received. - - - does_not_equal - ${program_exit_code} - 0 - - - - - - - 1 - ../../dist/vcredist/vcredist_*.exe - - - - - - - windows - - -