X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/462622b27f496ff37d138ae9a5295d4458b7545c..3b50432abf11a0dbdab6b8d4136c3956ce4def1f:/wxPython/distrib/make_installer.py?ds=sidebyside diff --git a/wxPython/distrib/make_installer.py b/wxPython/distrib/make_installer.py index c8750b4e80..78cba8bd89 100644 --- a/wxPython/distrib/make_installer.py +++ b/wxPython/distrib/make_installer.py @@ -181,9 +181,16 @@ begin if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\Python\PythonCore\%(PYTHONVER)s\InstallPath', '', PythonDir) then begin - MsgBox('No installation of Python %(PYTHONVER)s found. Aborting...', - mbConfirmation, MB_OK); - Result := false; + + if not RegQueryStringValue(HKEY_CURRENT_USER, + 'Software\Python\PythonCore\%(PYTHONVER)s\InstallPath', + '', PythonDir) then begin + + MsgBox('No installation of Python %(PYTHONVER)s found. Aborting...', + mbConfirmation, MB_OK); + Result := false; + end else + Result := true; end else Result := true; end;