From 0d227c16602dbf61126101a8e8ee3735df9136b6 Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Fri, 31 Oct 2025 17:56:58 +0000 Subject: [PATCH] [windows] add an option to install Embeddable Python 3.10.1 in the toolchain installer --- platforms/Windows/Directory.Build.props | 1 + .../Windows/SideBySideUpgradeStrategy.props | 2 + platforms/Windows/bundle/installer.wixproj | 1 + platforms/Windows/bundle/installer.wxs | 8 + platforms/Windows/bundle/theme.xml | 40 +- platforms/Windows/python/python.wixproj | 5 + platforms/Windows/python/python.wxs | 132 ++++++ platforms/Windows/readme.md | 7 +- platforms/Windows/shared/shared.wxs | 383 ++++++++++++++++++ platforms/Windows/shared/swift.en-us.wxl | 1 + 10 files changed, 558 insertions(+), 22 deletions(-) create mode 100644 platforms/Windows/python/python.wixproj create mode 100644 platforms/Windows/python/python.wxs diff --git a/platforms/Windows/Directory.Build.props b/platforms/Windows/Directory.Build.props index 72b72d1f..382ce242 100644 --- a/platforms/Windows/Directory.Build.props +++ b/platforms/Windows/Directory.Build.props @@ -84,6 +84,7 @@ ArePackageCabsEmbedded=$(ArePackageCabsEmbedded); BaseReleaseDownloadUrl=$(BaseReleaseDownloadUrl); ImageRoot=$(ImageRoot); + PythonVersion=$(PythonVersion); WindowsRuntimeARM64=$(WindowsRuntimeARM64); WindowsRuntimeX64=$(WindowsRuntimeX64); WindowsRuntimeX86=$(WindowsRuntimeX86); diff --git a/platforms/Windows/SideBySideUpgradeStrategy.props b/platforms/Windows/SideBySideUpgradeStrategy.props index 6cf3935e..54d4727c 100644 --- a/platforms/Windows/SideBySideUpgradeStrategy.props +++ b/platforms/Windows/SideBySideUpgradeStrategy.props @@ -29,6 +29,7 @@ {F9BA01C7-0C7C-4898-90BD-9D6BB308F0B3} {313B9C1F-D5B5-4FED-B7E0-138F1EE6B26A} {01AFF1CF-A025-41B6-BCBC-728D794353FD} + {5FC42BA9-ABF5-4CCD-B93B-BDFED936BA37} @@ -71,6 +72,7 @@ ExperimentalRTLUpgradeCode=$(ExperimentalRTLUpgradeCode); AndroidPlatformUpgradeCode=$(AndroidPlatformUpgradeCode); WindowsPlatformUpgradeCode=$(WindowsPlatformUpgradeCode); + PythonUpgradeCode=$(PythonUpgradeCode); diff --git a/platforms/Windows/bundle/installer.wixproj b/platforms/Windows/bundle/installer.wixproj index 9a3d53ae..4cfe3236 100644 --- a/platforms/Windows/bundle/installer.wixproj +++ b/platforms/Windows/bundle/installer.wixproj @@ -21,6 +21,7 @@ + diff --git a/platforms/Windows/bundle/installer.wxs b/platforms/Windows/bundle/installer.wxs index 194300e8..7c92d20d 100644 --- a/platforms/Windows/bundle/installer.wxs +++ b/platforms/Windows/bundle/installer.wxs @@ -31,6 +31,7 @@ + @@ -134,6 +135,13 @@ + + + + Segoe UI Segoe UI - - + + @@ -59,24 +59,24 @@ #(loc.Bld_ProductName) #(loc.Cli_ProductName) #(loc.Dbg_ProductName) - #(loc.Ide_ProductName) - #(loc.Rtl_ProductName) - #(loc.Plt_ProductName_Windows) - #(loc.Sdk_ProductName_Windows_amd64) - #(loc.Redist_amd64) - #(loc.Sdk_ProductName_Windows_arm64) - #(loc.Redist_arm64) - #(loc.Sdk_ProductName_Windows_x86) - #(loc.Redist_x86) - #(loc.Plt_ProductName_Android) - #(loc.Sdk_ProductName_Android_arm64) - #(loc.Sdk_ProductName_Android_amd64) - #(loc.Sdk_ProductName_Android_armv7) - #(loc.Sdk_ProductName_Android_x86) - #(loc.Toolchain_ProductName) - #(loc.Asserts_Toolchain_ProductName) - #(loc.NoAsserts_Toolchain_ProductName) - + #(loc.EmbeddedPython_ProductName) + #(loc.Ide_ProductName) + #(loc.Rtl_ProductName) + #(loc.Plt_ProductName_Windows) + #(loc.Sdk_ProductName_Windows_amd64) + #(loc.Redist_amd64) + #(loc.Sdk_ProductName_Windows_arm64) + #(loc.Redist_arm64) + #(loc.Sdk_ProductName_Windows_x86) + #(loc.Redist_x86) + #(loc.Plt_ProductName_Android) + #(loc.Sdk_ProductName_Android_arm64) + #(loc.Sdk_ProductName_Android_amd64) + #(loc.Sdk_ProductName_Android_armv7) + #(loc.Sdk_ProductName_Android_x86) + #(loc.Toolchain_ProductName) + #(loc.Asserts_Toolchain_ProductName) + #(loc.NoAsserts_Toolchain_ProductName)