|
1 | 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
|
2 | 2 | <Bundle
|
3 |
| - Name="!(loc.BundleName)" |
| 3 | + Name="!(loc.BundleName) $(ProductVersion)" |
4 | 4 | Version="$(ProductVersion)"
|
5 |
| - Manufacturer="swift.org" |
| 5 | + Manufacturer="!(loc.ManufacturerName)" |
6 | 6 | Compressed="$(IsBundleCompressed)"
|
7 |
| - UpgradeCode="710F1827-DA4A-4BF4-BDCE-D5F2D7C0DEF2"> |
| 7 | + UpgradeCode="$(BundleUpgradeCode)"> |
8 | 8 |
|
9 |
| - <!-- This bundle should also upgrade the "old" bundles. --> |
10 |
| - <RelatedBundle Id="8c75f32a-7bdf-4c61-abf6-c7e1c4b8fbf6" Action="upgrade" /> |
11 |
| - <RelatedBundle Id="151d42d9-8877-4b72-ac62-4695243a35c1" Action="upgrade" /> |
| 9 | + <!-- Avoid spaces in log file names, for ease of log spelunking. --> |
| 10 | + <Log Prefix="SwiftToolKit_$(ProductVersion)" /> |
12 | 11 |
|
13 | 12 | <BootstrapperApplication>
|
14 | 13 | <bal:WixStandardBootstrapperApplication
|
15 | 14 | LicenseUrl="https://www.swift.org/LICENSE.txt"
|
16 |
| - LogoFile="swift.png" |
17 |
| - SuppressOptionsUI="yes" |
18 |
| - SuppressRepair="no" |
19 |
| - Theme="hyperlinkLicense" /> |
| 15 | + Theme="hyperlinkSidebarLicense" |
| 16 | + LocalizationFile="..\shared\swift.en-us.wxl" |
| 17 | + ThemeFile="theme.xml" /> |
| 18 | + <Payload SourceFile="swift_side.png" /> |
20 | 19 | </BootstrapperApplication>
|
21 | 20 |
|
| 21 | + <!-- |
| 22 | + Keep `InstallRoot` in sync with the INSTALLROOT definition in shared.wxs. |
| 23 | + The bundle variable here will overwrite the default authored in the MSI |
| 24 | + packages, but avoid the confusion if the default directory should change. |
| 25 | + --> |
| 26 | + <Variable Name="InstallRoot" bal:Overridable="yes" Type="formatted" Persisted="yes" |
| 27 | + Value="[LocalAppDataFolder]Programs\Swift" /> |
| 28 | + <Variable Name="OptionsInstallBld" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 29 | + <Variable Name="OptionsInstallCli" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 30 | + <Variable Name="OptionsInstallDbg" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 31 | + <Variable Name="OptionsInstallIde" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 32 | + <Variable Name="OptionsInstallRtl" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 33 | + <Variable Name="OptionsInstallSdkX86" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 34 | + <Variable Name="OptionsInstallSdkAMD64" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 35 | + <Variable Name="OptionsInstallSdkArm64" bal:Overridable="yes" Persisted="yes" Value="1" /> |
| 36 | + |
| 37 | + <!-- |
| 38 | + For the online bundle, we need to provide a download URL for each package and its .cabs. |
| 39 | + (The SourceFile attribute is also required, both for the offline bundle and for Burn |
| 40 | + to get the hash of the packages. Note that the packages and .cabs available for |
| 41 | + download must exactly match the ones used when building the bundle. Burn validates |
| 42 | + downloads by their hashes.) |
| 43 | +
|
| 44 | + `BaseReleaseDownloadUrl` is a preprocessor variable that provides the URL to the |
| 45 | + directory containing the packages for that bundle. So, for example, for the bundle at: |
| 46 | +
|
| 47 | + https://download.swift.org/swift-5.8.1-release/windows10/swift-5.8.1-RELEASE/swift-5.8.1-RELEASE-windows10.exe |
| 48 | +
|
| 49 | + `BaseReleaseDownloadUrl` would be `https://download.swift.org/swift-5.8.1-release/windows10/swift-5.8.1-RELEASE`. |
| 50 | +
|
| 51 | + `{2}` is the file name of the payload. |
| 52 | +
|
| 53 | + Schema doc is at https://wixtoolset.org/docs/schema/wxs/msipackage/. |
| 54 | + --> |
| 55 | + |
22 | 56 | <Chain>
|
23 |
| - <MsiPackage SourceFile="$(MSI_LOCATION)\runtime.msi" /> |
24 |
| - <MsiPackage SourceFile="$(MSI_LOCATION)\bld.msi" /> |
25 |
| - <MsiPackage SourceFile="$(MSI_LOCATION)\cli.msi" /> |
26 |
| - <MsiPackage SourceFile="$(MSI_LOCATION)\dbg.msi" /> |
27 |
| - <MsiPackage SourceFile="$(MSI_LOCATION)\ide.msi" /> |
28 |
| - <MsiPackage SourceFile="$(MSI_LOCATION)\sdk.msi" /> |
29 |
| - </Chain> |
| 57 | + <MsiPackage |
| 58 | + SourceFile="!(bindpath.rtl)\rtl.msi" |
| 59 | + InstallCondition="OptionsInstallRtl" |
| 60 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 61 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 62 | + </MsiPackage> |
| 63 | + |
| 64 | + <MsiPackage |
| 65 | + SourceFile="!(bindpath.bld)\bld.msi" |
| 66 | + InstallCondition="OptionsInstallBld" |
| 67 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 68 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 69 | + </MsiPackage> |
| 70 | + |
| 71 | + <MsiPackage |
| 72 | + SourceFile="!(bindpath.cli)\cli.msi" |
| 73 | + InstallCondition="OptionsInstallCli" |
| 74 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 75 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 76 | + </MsiPackage> |
| 77 | + |
| 78 | + <MsiPackage |
| 79 | + SourceFile="!(bindpath.dbg)\dbg.msi" |
| 80 | + InstallCondition="OptionsInstallDbg" |
| 81 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 82 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 83 | + </MsiPackage> |
| 84 | + |
| 85 | + <MsiPackage |
| 86 | + SourceFile="!(bindpath.ide)\ide.msi" |
| 87 | + InstallCondition="OptionsInstallIde" |
| 88 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 89 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 90 | + </MsiPackage> |
| 91 | + |
| 92 | + <?if $(INCLUDE_X86_SDK) == true?> |
| 93 | + <MsiPackage |
| 94 | + SourceFile="!(bindpath.sdk_x86)\sdk.x86.msi" |
| 95 | + InstallCondition="OptionsInstallSdkX86" |
| 96 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 97 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 98 | + </MsiPackage> |
| 99 | + <?endif?> |
| 100 | + |
| 101 | + <MsiPackage |
| 102 | + SourceFile="!(bindpath.sdk_amd64)\sdk.amd64.msi" |
| 103 | + InstallCondition="OptionsInstallSdkAMD64" |
| 104 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 105 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 106 | + </MsiPackage> |
| 107 | + |
| 108 | + <?if $(INCLUDE_ARM64_SDK) == true ?> |
| 109 | + <MsiPackage |
| 110 | + SourceFile="!(bindpath.sdk_arm64)\sdk.arm64.msi" |
| 111 | + InstallCondition="OptionsInstallSdkArm64" |
| 112 | + DownloadUrl="$(BaseReleaseDownloadUrl)/{2}"> |
| 113 | + <MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" /> |
| 114 | + </MsiPackage> |
| 115 | + <?endif?> |
| 116 | + </Chain> |
30 | 117 | </Bundle>
|
31 | 118 | </Wix>
|
0 commit comments