Issue #25089: Adds logging to installer for case where launcher is not selected on...
authorSteve Dower <steve.dower@microsoft.com>
Thu, 8 Oct 2015 16:55:49 +0000 (09:55 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Thu, 8 Oct 2015 16:55:49 +0000 (09:55 -0700)
Misc/NEWS
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

index cfa15415d2d42f9a9bd20a2d96233ada1e04f461..410caa29e02de31bc7a355ef2cdb8d351a7b0980 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -297,6 +297,9 @@ Build
 Windows
 -------
 
+- Issue #25089: Adds logging to installer for case where launcher is not
+  selected on upgrade.
+
 - Issue #25165: Windows uninstallation should not remove launcher if other
   versions remain
 
index 99884e4c9aa9a0cb4574ef5e57b346da44d9f7cd..bc418e0014f9d38020e341264d346cea7a1d3455 100644 (file)
@@ -687,6 +687,13 @@ public: // IBootstrapperApplication
             if (hr == S_FALSE) {
                 hr = LoadLauncherStateFromKey(_engine, HKEY_LOCAL_MACHINE);
             }
+            if (FAILED(hr)) {
+                BalLog(
+                    BOOTSTRAPPER_LOG_LEVEL_ERROR,
+                    "Failed to load launcher state: error code 0x%08X",
+                    hr
+                );
+            }
         } else if (BOOTSTRAPPER_RELATED_OPERATION_NONE == operation) {
             if (_command.action == BOOTSTRAPPER_ACTION_INSTALL) {
                 LOC_STRING *pLocString = nullptr;