Skip to content

Commit 96d8ca7

Browse files
authored
gh-118347: Fix Windows installer not updating launcher (GH-118386)
1 parent 2ba1aed commit 96d8ca7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes launcher updates not being installed.

Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
464464

465465
LOC_STRING *pLocString = nullptr;
466466
LPCWSTR locKey = L"#(loc.Include_launcherHelp)";
467-
LONGLONG detectedLauncher;
467+
LONGLONG blockedLauncher;
468468

469-
if (SUCCEEDED(BalGetNumericVariable(L"DetectedLauncher", &detectedLauncher)) && detectedLauncher) {
469+
if (SUCCEEDED(BalGetNumericVariable(L"BlockedLauncher", &blockedLauncher)) && blockedLauncher) {
470470
locKey = L"#(loc.Include_launcherRemove)";
471-
} else if (SUCCEEDED(BalGetNumericVariable(L"DetectedOldLauncher", &detectedLauncher)) && detectedLauncher) {
471+
} else if (SUCCEEDED(BalGetNumericVariable(L"DetectedOldLauncher", &blockedLauncher)) && blockedLauncher) {
472472
locKey = L"#(loc.Include_launcherUpgrade)";
473473
}
474474

@@ -2671,7 +2671,7 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
26712671
/*Elevate when installing for all users*/
26722672
L"InstallAllUsers or "
26732673
/*Elevate when installing the launcher for all users and it was not detected*/
2674-
L"(Include_launcher and InstallLauncherAllUsers and not DetectedLauncher)"
2674+
L"(Include_launcher and InstallLauncherAllUsers and not BlockedLauncher)"
26752675
L")",
26762676
L""
26772677
};

Tools/msi/bundle/packagegroups/launcher.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
EnableFeatureSelection="yes"
1212
Permanent="yes"
1313
Visible="yes"
14-
InstallCondition="(InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and not DetectedLauncher">
14+
InstallCondition="(InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and not BlockedLauncher">
1515
<?if $(var.Platform)~="ARM64" ?>
1616
<MsiProperty Name="ARM64_SHELLEXT" Value="1" />
1717
<?endif ?>
@@ -25,7 +25,7 @@
2525
EnableFeatureSelection="yes"
2626
Permanent="yes"
2727
Visible="yes"
28-
InstallCondition="not (InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and not DetectedLauncher">
28+
InstallCondition="not (InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and not BlockedLauncher">
2929
<?if $(var.Platform)~="ARM64" ?>
3030
<MsiProperty Name="ARM64_SHELLEXT" Value="1" />
3131
<?endif ?>

0 commit comments

Comments
 (0)