Skip to content

Commit 7504619

Browse files
authored
Adds MsixAppInstallerData to tweak the install UI. (#68)
Fixes #63
1 parent 84790ea commit 7504619

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

_msbuild.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,12 @@ def mainw_exe(name):
130130
PACKAGE = Package('python-manager',
131131
PyprojectTomlFile('pyproject.toml'),
132132
# MSIX manifest
133-
File('src/pymanager/appxmanifest.xml', name='appxmanifest.xml'),
134-
File('src/pymanager/pymanager.appinstaller', name='pymanager.appinstaller'),
133+
File('src/pymanager/appxmanifest.xml'),
134+
File('src/pymanager/pymanager.appinstaller'),
135+
Package(
136+
'MSIX.AppInstaller.Data',
137+
File('src/pymanager/MSIXAppInstallerData.xml'),
138+
),
135139

136140
# Default settings
137141
File('src/pymanager.json'),
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AppInstallerUX xmlns="http://schemas.microsoft.com/msix/appinstallerux"
3+
Version="1.0.0">
4+
<!-- Using the blue and grey from python.org - dark mode users always get black -->
5+
<UX AccentColor="#3776AB" BackgroundColor="#FCFCFC">
6+
<Icon HorizontalAlignment="right" Logo="_resources\setupx150.png" Size="medium" />
7+
<Buttons Text="Python" IsSecondaryButtonAccent="false"/>
8+
<HyperLinks TopMargin="1">
9+
<!-- Undocumented limit of two links - choose wisely! -->
10+
<HyperLink Text="Python website"
11+
Url="https://www.python.org/"
12+
HorizontalAlignment="left" />
13+
<HyperLink Text="Get help with this installer"
14+
Url="https://docs.python.org/dev/using/windows.html"
15+
HorizontalAlignment="left" />
16+
</HyperLinks>
17+
</UX>
18+
</AppInstallerUX>

0 commit comments

Comments
 (0)