From 6a6f67ff77473baceebf81dcca82ead6a22eeeeb Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 13 Feb 2023 16:38:24 +0000 Subject: [PATCH 1/3] gh-101849: Add upgrade codes for old versions of launcher that ended up with later version numbers --- ...-02-13-16-32-50.gh-issue-101849.7lm_53.rst | 1 + Tools/msi/common.wxs | 2 +- Tools/msi/launcher/launcher.wxs | 19 ++++++++++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst diff --git a/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst b/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst new file mode 100644 index 00000000000000..a0e0a4d0b64ec2 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst @@ -0,0 +1 @@ +Fixes installer correctly upgrading existing ``py.exe`` launcher installs. diff --git a/Tools/msi/common.wxs b/Tools/msi/common.wxs index 55cb44860d02c0..54fa749ab17cdd 100644 --- a/Tools/msi/common.wxs +++ b/Tools/msi/common.wxs @@ -25,7 +25,6 @@ - @@ -42,6 +41,7 @@ UPGRADE + diff --git a/Tools/msi/launcher/launcher.wxs b/Tools/msi/launcher/launcher.wxs index b83058c63bf6d9..cb65a43a1f18e3 100644 --- a/Tools/msi/launcher/launcher.wxs +++ b/Tools/msi/launcher/launcher.wxs @@ -34,13 +34,30 @@ NOT Installed AND NOT ALLUSERS=1 NOT Installed AND ALLUSERS=1 - UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER + UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER or UPGRADE_3_11_0 or UPGRADE_3_11_1 + + Installed OR NOT DOWNGRADE OR UPGRADE_3_11_0 OR UPGRADE_3_11_1 + + Installed OR NOT DOWNGRADE + + + + + + + From 26e98adc5ffb5cc27ce40c248c14bcaddb780711 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 13 Feb 2023 16:57:22 +0000 Subject: [PATCH 2/3] Omit all references --- Tools/msi/launcher/launcher.wxs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/msi/launcher/launcher.wxs b/Tools/msi/launcher/launcher.wxs index cb65a43a1f18e3..49f1f7b8c1762e 100644 --- a/Tools/msi/launcher/launcher.wxs +++ b/Tools/msi/launcher/launcher.wxs @@ -34,7 +34,11 @@ NOT Installed AND NOT ALLUSERS=1 NOT Installed AND ALLUSERS=1 + UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER or UPGRADE_3_11_0 or UPGRADE_3_11_1 + + UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER + From 273a252a8c121942f5dceba67bcec74b370f46e0 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 13 Feb 2023 18:58:24 +0000 Subject: [PATCH 3/3] Better NEWS --- .../next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst b/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst index a0e0a4d0b64ec2..861d4de9f9a650 100644 --- a/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst +++ b/Misc/NEWS.d/next/Windows/2023-02-13-16-32-50.gh-issue-101849.7lm_53.rst @@ -1 +1 @@ -Fixes installer correctly upgrading existing ``py.exe`` launcher installs. +Ensures installer will correctly upgrade existing ``py.exe`` launcher installs.