summaryrefslogtreecommitdiffstats
path: root/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-05-15 19:10:53 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-05-15 19:10:53 (GMT)
commit42b50d187fef851bf4c26d7053184112f0f6753c (patch)
treec9320aa81dbcdd62e07c7b0de866869de03a97b5 /Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
parent0cd2bf46ba2260f896dab882d2b6d07cce3417cb (diff)
downloadcpython-42b50d187fef851bf4c26d7053184112f0f6753c.zip
cpython-42b50d187fef851bf4c26d7053184112f0f6753c.tar.gz
cpython-42b50d187fef851bf4c26d7053184112f0f6753c.tar.bz2
Fixes default per-user install precompiling the standard library.
Diffstat (limited to 'Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp')
-rw-r--r--Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
index 435cde3..351218e 100644
--- a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
+++ b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
@@ -302,10 +302,17 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
case ID_INSTALL_JUST_FOR_ME_BUTTON:
SavePageSettings();
-
+
+ if (!QueryElevateForCrtInstall()) {
+ break;
+ }
+
hr = _engine->SetVariableNumeric(L"InstallAllUsers", 0);
ExitOnFailure(hr, L"Failed to set install scope");
+ hr = _engine->SetVariableNumeric(L"CompileAll", 0);
+ ExitOnFailure(hr, L"Failed to unset CompileAll");
+
hr = BalGetStringVariable(L"DefaultJustForMeTargetDir", &defaultDir);
BalExitOnFailure(hr, "Failed to get the default per-user install directory");
@@ -320,10 +327,6 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
ReleaseStr(targetDir);
BalExitOnFailure(hr, "Failed to set install target directory");
- if (!QueryElevateForCrtInstall()) {
- break;
- }
-
OnPlan(BOOTSTRAPPER_ACTION_INSTALL);
break;