From: Steve Dower Date: Thu, 12 Feb 2015 01:49:01 +0000 (-0800) Subject: Fix installer Back button going to wrong page when modifying. X-Git-Tag: v3.5.0a2~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db80aec67a90b80992afea660ab9de4383017cde;p=thirdparty%2FPython%2Fcpython.git Fix installer Back button going to wrong page when modifying. Also fix error when doing test builds without documentation file. --- diff --git a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp index ebe4da32e97c..5eda3f75caf5 100644 --- a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp +++ b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp @@ -325,7 +325,11 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication { case ID_CUSTOM1_BACK_BUTTON: SavePageSettings(); - GoToPage(PAGE_INSTALL); + if (_modifying) { + GoToPage(PAGE_MODIFY); + } else { + GoToPage(PAGE_INSTALL); + } break; case ID_INSTALL_CUSTOM_BUTTON: __fallthrough; @@ -412,6 +416,7 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication { _engine->SetVariableString(L"InstallAllUsersState", L"disable"); _engine->SetVariableString(L"TargetDirState", L"disable"); _engine->SetVariableString(L"CustomBrowseButtonState", L"disable"); + _modifying = TRUE; GoToPage(PAGE_CUSTOM1); break; @@ -2518,6 +2523,7 @@ public: _suppressDowngradeFailure = FALSE; _suppressRepair = FALSE; + _modifying = FALSE; _overridableVariables = nullptr; _taskbarList = nullptr; @@ -2598,6 +2604,7 @@ private: BOOL _suppressDowngradeFailure; BOOL _suppressRepair; + BOOL _modifying; STRINGDICT_HANDLE _overridableVariables; diff --git a/Tools/msi/doc/doc.wxs b/Tools/msi/doc/doc.wxs index 6becaf6cd129..ddab83b5ea5a 100644 --- a/Tools/msi/doc/doc.wxs +++ b/Tools/msi/doc/doc.wxs @@ -10,6 +10,7 @@ + @@ -20,6 +21,7 @@ Description="!(loc.ShortcutDescription)" /> +