Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96d8ca7

Browse files
authored
gh-118347: Fix Windows installer not updating launcher (GH-118386)
1 parent2ba1aed commit96d8ca7

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-
LONGLONGdetectedLauncher;
467+
LONGLONGblockedLauncher;
468468

469-
if (SUCCEEDED(BalGetNumericVariable(L"DetectedLauncher", &detectedLauncher)) &&detectedLauncher) {
469+
if (SUCCEEDED(BalGetNumericVariable(L"BlockedLauncher", &blockedLauncher)) &&blockedLauncher) {
470470
locKey =L"#(loc.Include_launcherRemove)";
471-
}elseif (SUCCEEDED(BalGetNumericVariable(L"DetectedOldLauncher", &detectedLauncher)) &&detectedLauncher) {
471+
}elseif (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 notDetectedLauncher)"
2674+
L"(Include_launcher and InstallLauncherAllUsers and notBlockedLauncher)"
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 notDetectedLauncher">
14+
InstallCondition="(InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and notBlockedLauncher">
1515
<?if $(var.Platform)~="ARM64" ?>
1616
<MsiPropertyName="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 notDetectedLauncher">
28+
InstallCondition="not (InstallAllUsers or InstallLauncherAllUsers) and Include_launcher and notBlockedLauncher">
2929
<?if $(var.Platform)~="ARM64" ?>
3030
<MsiPropertyName="ARM64_SHELLEXT"Value="1" />
3131
<?endif ?>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp