Issue #25144: Ensures TargetDir is set before continuing with custom install.

This commit is contained in:
Steve Dower 2016-09-09 16:39:36 -07:00
commit d6c580cbce
2 changed files with 6 additions and 0 deletions

View file

@ -323,6 +323,9 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
case ID_CUSTOM_INSTALL_BUTTON:
SavePageSettings();
hr = EnsureTargetDir();
ExitOnFailure(hr, L"Failed to set TargetDir");
hr = BalGetStringVariable(L"TargetDir", &targetDir);
if (SUCCEEDED(hr)) {
// TODO: Check whether directory exists and contains another installation