tools: add system check to verify Python versions and Windows Defender status

This commit is contained in:
Juraj Michálek
2020-11-26 16:00:55 +01:00
parent a5fd7878db
commit c247c7fe2f
19 changed files with 890 additions and 100 deletions

View File

@@ -1,4 +1,4 @@
{ Copyright 2019 Espressif Systems (Shanghai) PTE LTD
{ Copyright 2019-2020 Espressif Systems (Shanghai) CO LTD
SPDX-License-Identifier: Apache-2.0 }
{ ------------------------------ Page to select Python interpreter ------------------------------ }
@@ -50,8 +50,6 @@ begin
if Page.CheckListBox.Items.Count > 0 then
exit;
FindInstalledPythonVersions();
VersionToInstall := '{#PythonVersion}';
OfferToInstall := True;
FirstEnabledIndex := -1;
@@ -119,11 +117,11 @@ end;
procedure PythonExecutablePathUpdateAfterInstall();
var
Version, DisplayName, ExecutablePath: String;
Version, DisplayName, ExecutablePath, BaseDir: String;
begin
if not GetPythonVersionInfoFromKey(
HKEY_CURRENT_USER, 'Software\Python', 'PythonCore', '{#PythonVersion}',
Version, DisplayName, ExecutablePath) then
Version, DisplayName, ExecutablePath, BaseDir) then
begin
Log('Failed to find ExecutablePath for the installed copy of Python');
exit;