]> granicus.if.org Git - python/commitdiff
Fixes default per-user install precompiling the standard library.
authorSteve Dower <steve.dower@microsoft.com>
Fri, 15 May 2015 19:10:53 +0000 (12:10 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Fri, 15 May 2015 19:10:53 +0000 (12:10 -0700)
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

index 435cde3e0c686665f2065a23094bd843f83ce109..351218e030f650199258a83d3c99f6190b63f83e 100644 (file)
@@ -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;