Files
pilotclient/installer/installbuilder/vcredist-x86.xml
Lars Toenning bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00

84 lines
3.4 KiB
XML

<!--
SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
-->
<component>
<name>vcruntime32</name>
<description>Visual Studio 2019 x86 Redistributables</description>
<canBeEdited>0</canBeEdited>
<selected>1</selected>
<show>1</show>
<folderList>
<folder>
<description>vcredist</description>
<destination>${installdir}/vcredist</destination>
<name>vcredist32</name>
<platforms>windows</platforms>
<actionList>
<runProgram>
<abortOnError>0</abortOnError>
<program>${installdir}/vcredist/vcredist_x86.exe</program>
<programArguments>/install /quiet /norestart</programArguments>
<progressText>Installing Visual Studio 2019 x86 Redistributables</progressText>
<showMessageOnError>0</showMessageOnError>
<ruleList>
<platformTest>
<type>windows</type>
</platformTest>
<compareText>
<logic>equals</logic>
<text>${architecture}</text>
<value>32</value>
</compareText>
</ruleList>
</runProgram>
<showWarning>
<text>Installation of MS Visual Studio 2019 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 an issue at http://tiny.cc/swift-issue with the error code, you received.</text>
<ruleList>
<!-- No error -->
<compareValues>
<logic>does_not_equal</logic>
<value1>${program_exit_code}</value1>
<value2>0</value2>
</compareValues>
<!-- A newer version of this product is already installed -->
<compareValues>
<logic>does_not_equal</logic>
<value1>${program_exit_code}</value1>
<value2>1638</value2>
</compareValues>
<!-- Restart required -->
<compareValues>
<logic>does_not_equal</logic>
<value1>${program_exit_code}</value1>
<value2>3010</value2>
</compareValues>
</ruleList>
</showWarning>
</actionList>
<distributionFileList>
<distributionFile>
<origin>../../dist/vcredist/vcredist_x86.exe</origin>
</distributionFile>
</distributionFileList>
</folder>
</folderList>
<shouldPackRuleList>
<platformTest>
<type>windows</type>
</platformTest>
<compareText>
<logic>equals</logic>
<text>${architecture}</text>
<value>32</value>
</compareText>
</shouldPackRuleList>
</component>