mirror of https://github.com/python/cpython
Merge from 3.5.0
This commit is contained in:
commit
6695c2e356
|
@ -104,6 +104,11 @@ Windows
|
|||
|
||||
- Issue #25022: Removed very outdated PC/example_nt/ directory.
|
||||
|
||||
Build
|
||||
-----
|
||||
|
||||
- Issue #25071: Windows installer should not require TargetDir
|
||||
parameter when installing quietly
|
||||
|
||||
What's New in Python 3.5.0 release candidate 4?
|
||||
===============================================
|
||||
|
|
|
@ -723,6 +723,36 @@ public: // IBootstrapperApplication
|
|||
hrStatus = EvaluateConditions();
|
||||
}
|
||||
|
||||
if (SUCCEEDED(hrStatus)) {
|
||||
// Ensure the default path has been set
|
||||
LONGLONG installAll;
|
||||
LPWSTR targetDir = nullptr;
|
||||
LPWSTR defaultTargetDir = nullptr;
|
||||
|
||||
hrStatus = BalGetStringVariable(L"TargetDir", &targetDir);
|
||||
if (FAILED(hrStatus) || !targetDir || !targetDir[0]) {
|
||||
ReleaseStr(targetDir);
|
||||
targetDir = nullptr;
|
||||
|
||||
if (FAILED(BalGetNumericVariable(L"InstallAllUsers", &installAll))) {
|
||||
installAll = 0;
|
||||
}
|
||||
|
||||
hrStatus = BalGetStringVariable(
|
||||
installAll ? L"DefaultAllUsersTargetDir" : L"DefaultJustForMeTargetDir",
|
||||
&defaultTargetDir
|
||||
);
|
||||
|
||||
if (SUCCEEDED(hrStatus) && defaultTargetDir) {
|
||||
if (defaultTargetDir[0] && SUCCEEDED(BalFormatString(defaultTargetDir, &targetDir))) {
|
||||
hrStatus = _engine->SetVariableString(L"TargetDir", targetDir);
|
||||
ReleaseStr(targetDir);
|
||||
}
|
||||
ReleaseStr(defaultTargetDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SetState(PYBA_STATE_DETECTED, hrStatus);
|
||||
|
||||
// If we're not interacting with the user or we're doing a layout or we're just after a force restart
|
||||
|
|
Loading…
Reference in New Issue