Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6c580c

Browse files
committed
Issue #25144: Ensures TargetDir is set before continuing with custom install.
2 parents 5272868 + c87ae80 commit d6c580c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ Build
333333
Windows
334334
-------
335335

336+
- Issue #25144: Ensures TargetDir is set before continuing with custom
337+
install.
338+
336339
- Issue #1602: Windows console doesn't input or print Unicode (PEP 528)
337340

338341
- Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)

Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
323323
case ID_CUSTOM_INSTALL_BUTTON:
324324
SavePageSettings();
325325

326+
hr = EnsureTargetDir();
327+
ExitOnFailure(hr, L"Failed to set TargetDir");
328+
326329
hr = BalGetStringVariable(L"TargetDir", &targetDir);
327330
if (SUCCEEDED(hr)) {
328331
// TODO: Check whether directory exists and contains another installation

0 commit comments

Comments
 (0)