- 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;