|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
3 |
| - <Product Id="*" Language="1033" Manufacturer="swift.org" Name="Swift Developer Tools for Windows x86_64" UpgradeCode="5778fa7a-f1a6-4133-b4e0-fc0d9caf4544" Version="$(var.ProductVersion)"> |
4 |
| - <Package Comments="Copyright (c) 2021-2022 Swift Open Source Project" Compressed="yes" Description="Swift Developer Tools for Windows x86_64" InstallScope="perMachine" Manufacturer="swift.org" /> |
| 1 | +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> |
| 2 | + <Package |
| 3 | + Language="1033" |
| 4 | + Manufacturer="swift.org" |
| 5 | + Name="Swift Developer Tools for Windows x86_64" |
| 6 | + UpgradeCode="5778fa7a-f1a6-4133-b4e0-fc0d9caf4544" |
| 7 | + Version="$(var.ProductVersion)" |
| 8 | + Scope="perMachine"> |
| 9 | + <SummaryInformation Description="Swift Developer Tools for Windows x86_64" /> |
5 | 10 |
|
6 | 11 | <Media Id="1" Cabinet="devtools.cab" EmbedCab="yes" />
|
7 | 12 | <?ifdef INCLUDE_DEBUG_INFO ?>
|
8 | 13 | <Media Id="2" Cabinet="PDBs.cab" EmbedCab="yes" />
|
9 | 14 | <?endif?>
|
10 | 15 |
|
11 | 16 | <!-- Directory Structure -->
|
12 |
| - <Directory Id="TARGETDIR" Name="SourceDir"> |
13 |
| - <Directory Id="INSTALLDIR"> |
14 |
| - <Directory Id="Developer" Name="Developer"> |
15 |
| - <Directory Id="Toolchains" Name="Toolchains"> |
16 |
| - <Directory Id="xctoolchain" Name="unknown-Asserts-development.xctoolchain"> |
17 |
| - <Directory Id="_usr" Name="usr"> |
18 |
| - <Directory Id="_usr_bin" Name="bin"> |
19 |
| - </Directory> |
20 |
| - <Directory Id="_usr_lib" Name="lib"> |
21 |
| - <!-- FIXME(compnerd) should we include the SPM import libraries? --> |
22 |
| - <Directory Id="_usr_lib_swift" Name="swift"> |
23 |
| - <Directory Id="_usr_lib_swift_pm" Name="pm"> |
24 |
| - <Directory Id="_usr_lib_swift_pm_ManifestAPI" Name="ManifestAPI"> |
25 |
| - </Directory> |
26 |
| - <Directory Id="_usr_lib_swift_pm_PluginAPI" Name="PluginAPI"> |
27 |
| - </Directory> |
| 17 | + <Directory Id="INSTALLDIR"> |
| 18 | + <Directory Id="Developer" Name="Developer"> |
| 19 | + <Directory Id="Toolchains" Name="Toolchains"> |
| 20 | + <Directory Id="xctoolchain" Name="unknown-Asserts-development.xctoolchain"> |
| 21 | + <Directory Id="_usr" Name="usr"> |
| 22 | + <Directory Id="_usr_bin" Name="bin"> |
| 23 | + </Directory> |
| 24 | + <Directory Id="_usr_lib" Name="lib"> |
| 25 | + <!-- FIXME(compnerd) should we include the SPM import libraries? --> |
| 26 | + <Directory Id="_usr_lib_swift" Name="swift"> |
| 27 | + <Directory Id="_usr_lib_swift_pm" Name="pm"> |
| 28 | + <Directory Id="_usr_lib_swift_pm_ManifestAPI" Name="ManifestAPI"> |
| 29 | + </Directory> |
| 30 | + <Directory Id="_usr_lib_swift_pm_PluginAPI" Name="PluginAPI"> |
28 | 31 | </Directory>
|
29 | 32 | </Directory>
|
30 | 33 | </Directory>
|
|
35 | 38 | </Directory>
|
36 | 39 | </Directory>
|
37 | 40 |
|
38 |
| - <SetDirectory Id="INSTALLDIR" Value="[WindowsVolume]Library"> |
39 |
| - NOT INSTALLDIR |
40 |
| - </SetDirectory> |
| 41 | + <SetDirectory Id="INSTALLDIR" Value="[WindowsVolume]Library" Condition="NOT INSTALLDIR" /> |
41 | 42 |
|
42 | 43 | <!-- Components -->
|
43 | 44 | <ComponentGroup Id="SwiftCollections">
|
|
222 | 223 | </ComponentGroup>
|
223 | 224 | <?endif?>
|
224 | 225 |
|
225 |
| - <Feature Id="DeveloperTools" Absent="disallow" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="Swift Developer Tools for Windows x86_64" Level="1" Title="Swift Developer Tools (Windows x86_64)"> |
| 226 | + <Feature Id="DeveloperTools" AllowAbsent="no" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="Swift Developer Tools for Windows x86_64" Level="1" Title="Swift Developer Tools (Windows x86_64)"> |
226 | 227 | <ComponentGroupRef Id="SwiftCollections" />
|
227 | 228 | <ComponentGroupRef Id="SwiftSystem" />
|
228 | 229 | <ComponentGroupRef Id="SwiftPackageManager" />
|
229 | 230 | <ComponentGroupRef Id="SourceKitLSP" />
|
230 | 231 |
|
231 | 232 | <?ifdef INCLUDE_DEBUG_INFO ?>
|
232 |
| - <Feature Id="DebugInfo" Absent="allow" AllowAdvertise="yes" Description="Debug Information for Swift Developer Tools for Windows x86_64" Level="0" Title="Debug Info"> |
233 |
| - <Condition Level="1">INSTALL_DEBUGINFO</Condition> |
| 233 | + <Feature Id="DebugInfo" AllowAbsent="yes" AllowAdvertise="yes" Description="Debug Information for Swift Developer Tools for Windows x86_64" Level="0" Title="Debug Info"> |
| 234 | + <Level Value="1" Condition="INSTALL_DEBUGINFO" /> |
234 | 235 | <ComponentGroupRef Id="SwiftCollectionsDebugInfo" />
|
235 | 236 | <ComponentGroupRef Id="SwiftSystemDebugInfo" />
|
236 | 237 | <ComponentGroupRef Id="SwiftPackageManagerDebugInfo" />
|
|
240 | 241 | </Feature>
|
241 | 242 |
|
242 | 243 | <UI>
|
243 |
| - <UIRef Id="WixUI_InstallDir" /> |
244 |
| - <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2">1</Publish> |
245 |
| - <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">1</Publish> |
| 244 | + <ui:WixUI Id="WixUI_InstallDir" /> |
| 245 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2" /> |
| 246 | + <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" /> |
246 | 247 | </UI>
|
247 |
| - <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" ></Property> |
| 248 | + <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"></Property> |
248 | 249 | <WixVariable Id="WixUIDialogBmp" Value="Resources\swift_dialog.png" />
|
249 | 250 | <WixVariable Id="WixUIBannerBmp" Value="Resources\swift_banner.png" />
|
250 | 251 |
|
251 |
| - </Product> |
| 252 | + </Package> |
252 | 253 | </Wix>
|
0 commit comments