From c87ae806abdf79dd5d000aaec47596122a93b29b Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 9 Sep 2016 16:37:53 -0700 Subject: Issue #25144: Ensures TargetDir is set before continuing with custom install. --- Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp') diff --git a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp index b7b2ecf39b3..6a67ee211ce 100644 --- a/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp +++ b/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp @@ -327,6 +327,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 -- cgit v1.2.3