Skip to content

Commit fd8af05

Browse files
committed
WiX: adjust the installer UI
Adjust the L&F to maintain the aspect ratio that we previously had (4:3). This also adjusts some of the spacing to make it more uniform and adjusts the location of the side banner. The banner is currently shorter than the desired height, but is expected to be replaced with an appropriately sized image soon. It also enables the feature selection items for the ARM64 and X86 SDKs.
1 parent 234d5e5 commit fd8af05

File tree

2 files changed

+48
-57
lines changed

2 files changed

+48
-57
lines changed

platforms/Windows/bundle/theme.xml

+42-51
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
1-
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
2-
1+
<!--
2+
Copyright (c) .NET Foundation and contributors. All rights reserved.
3+
Licensed under the Microsoft Reciprocal License.
4+
See LICENSE.TXT file in the project root for full license information.
5+
-->
36
<Theme xmlns="http://wixtoolset.org/schemas/v4/thmutil">
47
<Font Id="0" Height="-12" Weight="500" Foreground="windowtext" Background="window">Segoe UI</Font>
58
<Font Id="1" Height="-24" Weight="500" Foreground="windowtext">Segoe UI</Font>
69
<Font Id="2" Height="-22" Weight="500" Foreground="graytext">Segoe UI</Font>
710
<Font Id="3" Height="-12" Weight="500" Foreground="windowtext" Background="window">Segoe UI</Font>
811

9-
<Window Width="724" Height="362" HexStyle="100a0000" FontId="0" Caption="#(loc.Caption)">
12+
<Window Width="614" Height="384" HexStyle="100a0000" FontId="0" Caption="#(loc.Caption)">
13+
<ImageControl X="0" Y="0" Width="165" Height="384" ImageFile="swift_side.png"/>
14+
<Label X="176" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
15+
1016
<Page Name="Help">
11-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
12-
<Label X="185" Y="11" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.HelpHeader)</Label>
13-
<Label X="185" Y="48" Width="-11" Height="-35" FontId="3" DisablePrefix="yes">#(loc.HelpText)</Label>
17+
<Label X="176" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.HelpHeader)</Label>
18+
<Label X="176" Y="91" Width="-11" Height="-35" FontId="3" DisablePrefix="yes">#(loc.HelpText)</Label>
1419
<Button Name="HelpCloseButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">
1520
<Text>#(loc.HelpCloseButton)</Text>
1621
<CloseWindowAction />
1722
</Button>
1823
</Page>
1924

2025
<Page Name="Loading">
21-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
22-
<Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
23-
<Label X="185" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes" Visible="no" Name="CheckingForUpdatesLabel" />
26+
<Label X="176" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes" Visible="no" Name="CheckingForUpdatesLabel" />
2427
</Page>
2528

2629
<Page Name="Install">
27-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
28-
<Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
29-
<Label X="185" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.InstallHeader)</Label>
30-
<Label X="185" Y="91" Width="-11" Height="64" FontId="3" DisablePrefix="yes">
30+
<Label X="176" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.InstallHeader)</Label>
31+
<Label X="176" Y="91" Width="-11" Height="64" FontId="3" DisablePrefix="yes">
3132
<Text Condition="WixStdBASuppressOptionsUI">#(loc.InstallMessage)</Text>
3233
<Text Condition="NOT WixStdBASuppressOptionsUI">#(loc.InstallMessageOptions)</Text>
3334
</Label>
34-
<Hypertext Name="EulaHyperlink" X="185" Y="-81" Width="-11" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallLicenseLinkText)</Hypertext>
35-
<Label Name="InstallVersion" X="185" Y="-111" Width="-11" Height="17" FontId="3" DisablePrefix="yes" VisibleCondition="WixStdBAShowVersion">#(loc.InstallVersion)</Label>
36-
<Checkbox Name="EulaAcceptCheckbox" X="185" Y="-51" Width="-11" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallAcceptCheckbox)</Checkbox>
35+
<Hypertext Name="EulaHyperlink" X="176" Y="-73" Width="-11" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallLicenseLinkText)</Hypertext>
36+
<Label Name="InstallVersion" X="176" Y="-103" Width="-11" Height="17" FontId="3" DisablePrefix="yes" VisibleCondition="WixStdBAShowVersion">#(loc.InstallVersion)</Label>
37+
<Checkbox Name="EulaAcceptCheckbox" X="176" Y="-51" Width="-11" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallAcceptCheckbox)</Checkbox>
3738
<Button Name="InstallUpdateButton" X="11" Y="-11" Width="200" Height="23" TabStop="yes" FontId="0" EnableCondition="WixStdBAUpdateAvailable" HideWhenDisabled="yes">#(loc.UpdateButton)</Button>
3839
<Button Name="OptionsButton" X="-171" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" VisibleCondition="NOT WixStdBASuppressOptionsUI">
3940
<Text>#(loc.InstallOptionsButton)</Text>
@@ -47,27 +48,25 @@
4748
</Page>
4849

4950
<Page Name="Options">
50-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
51-
52-
<Label X="185" Y="11" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsLocationLabel)</Label>
53-
<Editbox Name="InstallRoot" X="185" Y="46" Width="-91" Height="21" TabStop="yes" FontId="3" FileSystemAutoComplete="yes" />
54-
<Button Name="BrowseButton" X="-11" Y="45" Width="75" Height="23" TabStop="yes" FontId="3">
51+
<Label X="176" Y="46" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsLocationLabel)</Label>
52+
<Editbox Name="InstallRoot" X="176" Y="80" Width="-91" Height="21" TabStop="yes" FontId="3" FileSystemAutoComplete="yes" />
53+
<Button Name="BrowseButton" X="-11" Y="79" Width="75" Height="23" TabStop="yes" FontId="3">
5554
<Text>#(loc.OptionsBrowseButton)</Text>
5655
<BrowseDirectoryAction VariableName="InstallRoot" />
5756
</Button>
5857

59-
<Label X="185" Y="81" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsFeaturesLabel)</Label>
60-
<Checkbox Name="OptionsInstallBld" X="185" Y="116" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Bld_ProductName)</Checkbox>
61-
<Checkbox Name="OptionsInstallCli" X="185" Y="134" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Cli_ProductName)</Checkbox>
62-
<Checkbox Name="OptionsInstallDbg" X="185" Y="152" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Dbg_ProductName)</Checkbox>
63-
<Checkbox Name="OptionsInstallIde" X="185" Y="170" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Ide_ProductName)</Checkbox>
64-
<Checkbox Name="OptionsInstallRtl" X="185" Y="188" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Rtl_ProductName)</Checkbox>
65-
<Checkbox Name="OptionsInstallSdkAMD64" X="185" Y="206" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_amd64)</Checkbox>
66-
<Checkbox Name="OptionsInstallRedistAMD64" X="203" Y="224" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkAMD64">#(loc.Redist_amd64)</Checkbox>
67-
<Checkbox Name="OptionsInstallSdkX86" X="185" Y="242" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_x86)</Checkbox>
68-
<Checkbox Name="OptionsInstallRedistX86" X="203" Y="260" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkX86">#(loc.Redist_x86)</Checkbox>
69-
<Checkbox Name="OptionsInstallSdkArm64" X="185" Y="278" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_arm64)</Checkbox>
70-
<Checkbox Name="OptionsInstallRedistArm64" X="203" Y="296" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkArm64">#(loc.Redist_arm64)</Checkbox>
58+
<Label X="176" Y="111" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.OptionsFeaturesLabel)</Label>
59+
<Checkbox Name="OptionsInstallBld" X="176" Y="141" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Bld_ProductName)</Checkbox>
60+
<Checkbox Name="OptionsInstallCli" X="176" Y="159" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Cli_ProductName)</Checkbox>
61+
<Checkbox Name="OptionsInstallDbg" X="176" Y="177" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Dbg_ProductName)</Checkbox>
62+
<Checkbox Name="OptionsInstallIde" X="176" Y="195" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Ide_ProductName)</Checkbox>
63+
<Checkbox Name="OptionsInstallRtl" X="176" Y="213" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Rtl_ProductName)</Checkbox>
64+
<Checkbox Name="OptionsInstallSdkAMD64" X="176" Y="231" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_amd64)</Checkbox>
65+
<Checkbox Name="OptionsInstallRedistAMD64" X="194" Y="249" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkAMD64">#(loc.Redist_amd64)</Checkbox>
66+
<Checkbox Name="OptionsInstallSdkArm64" X="176" Y="267" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_arm64)</Checkbox>
67+
<Checkbox Name="OptionsInstallRedistArm64" X="194" Y="285" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkArm64">#(loc.Redist_arm64)</Checkbox>
68+
<Checkbox Name="OptionsInstallSdkX86" X="176" Y="303" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_x86)</Checkbox>
69+
<Checkbox Name="OptionsInstallRedistX86" X="194" Y="321" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkX86">#(loc.Redist_x86)</Checkbox>
7170

7271
<Button Name="OptionsOkButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">
7372
<Text>#(loc.OptionsOkButton)</Text>
@@ -80,18 +79,14 @@
8079
</Page>
8180

8281
<Page Name="Progress">
83-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
84-
<Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
85-
<Label X="185" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.ProgressHeader)</Label>
86-
<Label Name="OverallProgressPackageText" X="185" Y="89" Width="-11" Height="17" FontId="3" DisablePrefix="yes">#(loc.OverallProgressPackageText)</Label>
87-
<Progressbar Name="OverallCalculatedProgressbar" X="185" Y="111" Width="-11" Height="20" />
82+
<Label X="176" Y="50" Width="-11" Height="32" FontId="2" DisablePrefix="yes">#(loc.ProgressHeader)</Label>
83+
<Label Name="OverallProgressPackageText" X="176" Y="89" Width="-11" Height="17" FontId="3" DisablePrefix="yes">#(loc.OverallProgressPackageText)</Label>
84+
<Progressbar Name="OverallCalculatedProgressbar" X="176" Y="111" Width="-11" Height="20" />
8885
<Button Name="ProgressCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.ProgressCancelButton)</Button>
8986
</Page>
9087

9188
<Page Name="Modify">
92-
<Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
93-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
94-
<Label X="185" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.ModifyHeader)</Label>
89+
<Label X="176" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">#(loc.ModifyHeader)</Label>
9590
<Button Name="ModifyUpdateButton" X="11" Y="-11" Width="200" Height="23" TabStop="yes" FontId="0" EnableCondition="WixStdBAUpdateAvailable" HideWhenDisabled="yes">#(loc.UpdateButton)</Button>
9691
<Button Name="RepairButton" X="-171" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" HideWhenDisabled="yes">#(loc.ModifyRepairButton)</Button>
9792
<Button Name="UninstallButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.ModifyUninstallButton)</Button>
@@ -102,9 +97,7 @@
10297
</Page>
10398

10499
<Page Name="Success">
105-
<Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
106-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
107-
<Label X="185" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">
100+
<Label X="176" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">
108101
<Text>#(loc.SuccessHeader)</Text>
109102
<Text Condition="WixBundleAction = 2">#(loc.SuccessLayoutHeader)</Text>
110103
<Text Condition="WixBundleAction = 3">#(loc.SuccessUnsafeUninstallHeader)</Text>
@@ -115,7 +108,7 @@
115108
<Text Condition="WixBundleAction = 8">#(loc.SuccessRepairHeader)</Text>
116109
</Label>
117110
<Button Name="LaunchButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" HideWhenDisabled="yes">#(loc.SuccessLaunchButton)</Button>
118-
<Label X="185" Y="-51" Width="400" Height="34" FontId="3" DisablePrefix="yes" VisibleCondition="WixStdBARestartRequired">
111+
<Label X="176" Y="-51" Width="400" Height="34" FontId="3" DisablePrefix="yes" VisibleCondition="WixStdBARestartRequired">
119112
<Text>#(loc.SuccessRestartText)</Text>
120113
<Text Condition="WixBundleAction = 3">#(loc.SuccessUninstallRestartText)</Text>
121114
</Label>
@@ -127,9 +120,7 @@
127120
</Page>
128121

129122
<Page Name="Failure">
130-
<Label X="185" Y="11" Width="-11" Height="32" FontId="1" DisablePrefix="yes">#(loc.Title)</Label>
131-
<ImageControl X="11" Y="11" Width="165" Height="312" ImageFile="swift_side.png"/>
132-
<Label X="185" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">
123+
<Label X="176" Y="50" Width="-11" Height="30" FontId="2" DisablePrefix="yes">
133124
<Text>#(loc.FailureHeader)</Text>
134125
<Text Condition="WixBundleAction = 2">#(loc.FailureLayoutHeader)</Text>
135126
<Text Condition="WixBundleAction = 3">#(loc.FailureUnsafeUninstallHeader)</Text>
@@ -139,9 +130,9 @@
139130
<Text Condition="WixBundleAction = 7">#(loc.FailureModifyHeader)</Text>
140131
<Text Condition="WixBundleAction = 8">#(loc.FailureRepairHeader)</Text>
141132
</Label>
142-
<Hypertext Name="FailureLogFileLink" X="185" Y="121" Width="-11" Height="68" FontId="3" TabStop="yes" HideWhenDisabled="yes">#(loc.FailureHyperlinkLogText)</Hypertext>
143-
<Hypertext Name="FailureMessageText" X="185" Y="-115" Width="-11" Height="80" FontId="3" TabStop="yes" HideWhenDisabled="yes" />
144-
<Label X="185" Y="-57" Width="-11" Height="80" FontId="3" DisablePrefix="yes" VisibleCondition="WixStdBARestartRequired">#(loc.FailureRestartText)</Label>
133+
<Hypertext Name="FailureLogFileLink" X="176" Y="121" Width="-11" Height="68" FontId="3" TabStop="yes" HideWhenDisabled="yes">#(loc.FailureHyperlinkLogText)</Hypertext>
134+
<Hypertext Name="FailureMessageText" X="176" Y="-115" Width="-11" Height="80" FontId="3" TabStop="yes" HideWhenDisabled="yes" />
135+
<Label X="176" Y="-57" Width="-11" Height="80" FontId="3" DisablePrefix="yes" VisibleCondition="WixStdBARestartRequired">#(loc.FailureRestartText)</Label>
145136
<Button Name="FailureRestartButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" HideWhenDisabled="yes">#(loc.FailureRestartButton)</Button>
146137
<Button Name="FailureCloseButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">
147138
<Text>#(loc.FailureCloseButton)</Text>

platforms/Windows/shared/swift.en-us.wxl

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
<String Id="Rtl_ProductName" Value="Swift Windows Utilities" />
1010
<String Id="Rtl_ProductName_arm64" Value="Swift Windows Utilities (ARM64)" />
1111
<String Id="Rtl_ProductName_amd64" Value="Swift Windows Utilities (AMD64)" />
12-
<String Id="Rtl_ProductName_x86" Value="Swift Windows Utilities (x86)" />
12+
<String Id="Rtl_ProductName_x86" Value="Swift Windows Utilities (X86)" />
1313
<String Id="Sdk_ProductName_arm64" Value="Swift Windows SDK (ARM64)" />
1414
<String Id="Sdk_ProductName_amd64" Value="Swift Windows SDK (AMD64)" />
15-
<String Id="Sdk_ProductName_x86" Value="Swift Windows SDK (x86)" />
16-
<String Id="BundleName" Value="Swift Tool Kit" />
15+
<String Id="Sdk_ProductName_x86" Value="Swift Windows SDK (X86)" />
16+
<String Id="BundleName" Value="Swift Developer Toolkit" />
1717
<String Id="ManufacturerName" Value="swift.org" />
1818

19-
<String Id="OptionsFeaturesLabel" Value="Choose the features you want to install" />
19+
<String Id="OptionsFeaturesLabel" Value="Feature Selection" />
2020
<String Id="Redist_arm64" Value="Swift Windows Redistributable (ARM64)" />
2121
<String Id="Redist_amd64" Value="Swift Windows Redistributable (AMD64)" />
22-
<String Id="Redist_x86" Value="Swift Windows Redistributable (x86)" />
22+
<String Id="Redist_x86" Value="Swift Windows Redistributable (X86)" />
2323

2424
<String Id="Caption" Value="[WixBundleName] Setup" />
2525
<String Id="Title" Value="[WixBundleName]" />
@@ -40,7 +40,7 @@
4040
<String Id="InstallInstallButton" Value="&amp;Install" />
4141
<String Id="InstallCancelButton" Value="&amp;Cancel" />
4242
<String Id="OptionsHeader" Value="Setup Options" />
43-
<String Id="OptionsLocationLabel" Value="Install location" />
43+
<String Id="OptionsLocationLabel" Value="Install Location" />
4444
<String Id="OptionsBrowseButton" Value="&amp;Browse" />
4545
<String Id="OptionsOkButton" Value="&amp;OK" />
4646
<String Id="OptionsCancelButton" Value="&amp;Cancel" />

0 commit comments

Comments
 (0)