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

Skip to content

Commit c87ae80

Browse files
committed
Issue #25144: Ensures TargetDir is set before continuing with custom install.
1 parent 87dc4d6 commit c87ae80

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
@@ -275,6 +275,9 @@ Tools/Demos
275275
Windows
276276
-------
277277

278+
- Issue #25144: Ensures TargetDir is set before continuing with custom
279+
install.
280+
278281
- Issue #27469: Adds a shell extension to the launcher so that drag and drop
279282
works correctly.
280283

Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ class PythonBootstrapperApplication : public CBalBaseBootstrapperApplication {
327327
case ID_CUSTOM_INSTALL_BUTTON:
328328
SavePageSettings();
329329

330+
hr = EnsureTargetDir();
331+
ExitOnFailure(hr, L"Failed to set TargetDir");
332+
330333
hr = BalGetStringVariable(L"TargetDir", &targetDir);
331334
if (SUCCEEDED(hr)) {
332335
// TODO: Check whether directory exists and contains another installation

0 commit comments

Comments
 (0)