Skip to content

Commit 5ae5691

Browse files
committed
Issue python#25089: Adds logging to installer for case where launcher is not selected on upgrade.
1 parent 3cc6da2 commit 5ae5691

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ Build
297297
Windows
298298
-------
299299

300+
- Issue #25089: Adds logging to installer for case where launcher is not
301+
selected on upgrade.
302+
300303
- Issue #25165: Windows uninstallation should not remove launcher if other
301304
versions remain
302305

Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,13 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
687687
if (hr == S_FALSE) {
688688
hr = LoadLauncherStateFromKey(_engine, HKEY_LOCAL_MACHINE);
689689
}
690+
if (FAILED(hr)) {
691+
BalLog(
692+
BOOTSTRAPPER_LOG_LEVEL_ERROR,
693+
"Failed to load launcher state: error code 0x%08X",
694+
hr
695+
);
696+
}
690697
} else if (BOOTSTRAPPER_RELATED_OPERATION_NONE == operation) {
691698
if (_command.action == BOOTSTRAPPER_ACTION_INSTALL) {
692699
LOC_STRING *pLocString = nullptr;

0 commit comments

Comments
 (0)