|
| 1 | +<!-- |
| 2 | + Copyright (c) Team CharLS. |
| 3 | + SPDX-License-Identifier: BSD-3-Clause |
| 4 | +--> |
| 5 | + |
| 6 | +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" |
| 7 | + xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" |
| 8 | + xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> |
| 9 | + |
| 10 | + <!-- Use a different upgrade code for x86 to allow x86 and x64 versions to be installed side by side --> |
| 11 | + <?if $(sys.BUILDARCHSHORT) = "X86" ?> |
| 12 | + <?define UpgradeCode = "385a0ece-2336-4e92-985b-e68bd1794254" ?> |
| 13 | + <?else?> |
| 14 | + <?define UpgradeCode = "385a0ece-2336-4e92-985b-e68bd1794255" ?> |
| 15 | + <?endif?> |
| 16 | + |
| 17 | + <Bundle Name="Netpbm WIC Codec ($(sys.BUILDARCH))" |
| 18 | + Manufacturer="Team CharLS" |
| 19 | + Version="$(FourPartsVersion)" |
| 20 | + UpgradeCode="$(UpgradeCode)"> |
| 21 | + |
| 22 | + <BootstrapperApplication> |
| 23 | + <bal:WixStandardBootstrapperApplication |
| 24 | + LicenseUrl="" |
| 25 | + Theme="hyperlinkLicense" |
| 26 | + SuppressOptionsUI="yes" |
| 27 | + SuppressRepair="yes" /> |
| 28 | + </BootstrapperApplication> |
| 29 | + |
| 30 | + <!-- processor architecture --> |
| 31 | + <util:RegistrySearch |
| 32 | + Id="REG_ARCH" |
| 33 | + Root="HKLM" |
| 34 | + Key="SYSTEM\CurrentControlSet\Control\Session Manager\Environment" |
| 35 | + Value="PROCESSOR_ARCHITECTURE" |
| 36 | + Result="value" |
| 37 | + Variable="ARCH_NAME" /> |
| 38 | + |
| 39 | + <!-- Visual C++ 2015-2022 Redistributable (x86) runtime minimum msi package version --> |
| 40 | + <util:ProductSearch |
| 41 | + Id="VCRUNTIME_X86" |
| 42 | + Result="version" |
| 43 | + Variable="VCRUNTIME_X86_VER" |
| 44 | + UpgradeCode="65E5BD06-6392-3027-8C26-853107D3CF1A" |
| 45 | + Condition="VersionNT" /> |
| 46 | + |
| 47 | + <!-- Visual C++ 2015-2022 Redistributable (x64) runtime minimum msi package version --> |
| 48 | + <util:ProductSearch |
| 49 | + Id="VCRUNTIME_X64" |
| 50 | + Result="version" |
| 51 | + Variable="VCRUNTIME_X64_VER" |
| 52 | + UpgradeCode="36F68A90-239C-34DF-B58C-64B30153CE35" |
| 53 | + Condition="VersionNT64 AND (ARCH_NAME = "AMD64")" |
| 54 | + After="REG_ARCH" /> |
| 55 | + |
| 56 | + <!-- Visual C++ 2015-2022 Redistributable (Arm64) runtime msi package version --> |
| 57 | + <util:ProductSearch |
| 58 | + Id="VCRUNTIME_ARM64" |
| 59 | + Result="version" |
| 60 | + Variable="VCRUNTIME_ARM64_VER" |
| 61 | + UpgradeCode="DC9BAE42-810B-423A-9E25-E4073F1C7B00" |
| 62 | + Condition="(ARCH_NAME = "ARM64")" |
| 63 | + After="REG_ARCH" /> |
| 64 | + |
| 65 | + <!-- Visual C++ 2015-2022 Redistributable runtime msi package version --> |
| 66 | + <Variable Name="VCRUNTIME_VER" Type="version" Value="14.40.33810.0" /> |
| 67 | + |
| 68 | + <Chain> |
| 69 | + <!-- Visual C++ 2015-2022 Redistributable (x86) --> |
| 70 | + <?if $(sys.BUILDARCHSHORT) = "X86" ?> |
| 71 | + <ExePackage |
| 72 | + Id="VC_REDIST_X86" |
| 73 | + DisplayName="Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.40.33810" |
| 74 | + Cache="remove" |
| 75 | + PerMachine="yes" |
| 76 | + Permanent="yes" |
| 77 | + Protocol="burn" |
| 78 | + InstallCondition="VersionNT" |
| 79 | + DetectCondition="(VCRUNTIME_X86_VER >= VCRUNTIME_VER) AND VersionNT" |
| 80 | + InstallArguments="/install /quiet /norestart" |
| 81 | + RepairArguments="/repair /quiet /norestart" |
| 82 | + UninstallArguments="/uninstall /quiet /norestart"> |
| 83 | + <ExePackagePayload |
| 84 | + Name="VC_redist.x86.exe" |
| 85 | + ProductName="Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.40.33810" |
| 86 | + Description="Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.40.33810" |
| 87 | + Hash="91a6283f774f9e2338b65aa835156854e9e76aed32f821b13cfd070dd6c87e1542ce2d5845beb5e4af1ddb102314bb6e0ad6214d896bb3e387590a01eae0c182" |
| 88 | + Size="13867304" |
| 89 | + Version="14.40.33810.0" |
| 90 | + DownloadUrl="https://download.visualstudio.microsoft.com/download/pr/9c69db26-cda4-472d-bdae-f2b87f4a0177/A32DD41EAAB0C5E1EAA78BE3C0BB73B48593DE8D97A7510B97DE3FD993538600/VC_redist.x86.exe" /> |
| 91 | + </ExePackage> |
| 92 | + <?endif?> |
| 93 | + |
| 94 | + <!-- Visual C++ 2015-2022 Redistributable (x64) --> |
| 95 | + <?if $(sys.BUILDARCHSHORT) = "X64" ?> |
| 96 | + <ExePackage |
| 97 | + Id="VC_REDIST_X64" |
| 98 | + DisplayName="Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.40.33810" |
| 99 | + Cache="remove" |
| 100 | + PerMachine="yes" |
| 101 | + Permanent="yes" |
| 102 | + Protocol="burn" |
| 103 | + InstallCondition="VersionNT64 AND (ARCH_NAME = "AMD64")" |
| 104 | + DetectCondition="(VCRUNTIME_X64_VER >= VCRUNTIME_VER) AND VersionNT64 AND (ARCH_NAME = "AMD64")" |
| 105 | + InstallArguments="/install /quiet /norestart" |
| 106 | + RepairArguments="/repair /quiet /norestart" |
| 107 | + UninstallArguments="/uninstall /quiet /norestart"> |
| 108 | + <ExePackagePayload |
| 109 | + Name="VC_redist.x64.exe" |
| 110 | + ProductName="Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.40.33810" |
| 111 | + Description="Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.40.33810" |
| 112 | + Hash="5935b69f5138ac3fbc33813c74da853269ba079f910936aefa95e230c6092b92f6225bffb594e5dd35ff29bf260e4b35f91adede90fdf5f062030d8666fd0104" |
| 113 | + Size="25397512" |
| 114 | + Version="14.40.33810.0" |
| 115 | + DownloadUrl="https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe" /> |
| 116 | + </ExePackage> |
| 117 | + <?endif?> |
| 118 | + |
| 119 | + <MsiPackage |
| 120 | + Id="CodecInstaller" |
| 121 | + SourceFile="installer.msi" |
| 122 | + Visible="no" /> |
| 123 | + </Chain> |
| 124 | + </Bundle> |
| 125 | +</Wix> |
0 commit comments