summaryrefslogtreecommitdiffstats
path: root/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-09-23 00:01:17 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-09-23 00:01:17 (GMT)
commit8ef1db34bb3dc716f364a43e98d21b4a4cf760d6 (patch)
tree66a865380af9ba263fd07897c8b78bb823fc1ed3 /Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
parentdd7cb10b89f2d3cfb808c010a11481a1db08a8bb (diff)
parenta2ea0e4804f30cdc754b1ed6a37fff30fd8a5378 (diff)
downloadcpython-8ef1db34bb3dc716f364a43e98d21b4a4cf760d6.zip
cpython-8ef1db34bb3dc716f364a43e98d21b4a4cf760d6.tar.gz
cpython-8ef1db34bb3dc716f364a43e98d21b4a4cf760d6.tar.bz2
Merge with 3.5
Diffstat (limited to 'Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp')
-rw-r--r--Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
index 35ed2fe..99884e4 100644
--- a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
+++ b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
@@ -323,6 +323,8 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
SavePageSettings();
if (_modifying) {
GoToPage(PAGE_MODIFY);
+ } else if (_upgrading) {
+ GoToPage(PAGE_UPGRADE);
} else {
GoToPage(PAGE_INSTALL);
}
@@ -2524,6 +2526,7 @@ private:
case BOOTSTRAPPER_ACTION_INSTALL:
if (_upgradingOldVersion) {
_installPage = PAGE_UPGRADE;
+ _upgrading = TRUE;
} else if (SUCCEEDED(BalGetNumericVariable(L"SimpleInstall", &simple)) && simple) {
_installPage = PAGE_SIMPLE_INSTALL;
} else {
@@ -3029,6 +3032,7 @@ public:
_suppressDowngradeFailure = FALSE;
_suppressRepair = FALSE;
_modifying = FALSE;
+ _upgrading = FALSE;
_overridableVariables = nullptr;
_taskbarList = nullptr;
@@ -3113,6 +3117,7 @@ private:
BOOL _suppressDowngradeFailure;
BOOL _suppressRepair;
BOOL _modifying;
+ BOOL _upgrading;
int _crtInstalledToken;