Skip to content

Commit

Permalink
Merge pull request #159 from mrpau/hotfix/develop-to-master-branch
Browse files Browse the repository at this point in the history
Fix HandlePythonSetup error.
  • Loading branch information
mrpau-richard authored Mar 28, 2020
2 parents dfd332d + 4009c21 commit bdc22c4
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/installer-source/KolibriSetupScript.iss
Original file line number Diff line number Diff line change
Expand Up @@ -454,28 +454,6 @@ begin
result := ExpandConstant('{sd}') + DEFAULT_PIP_PATH;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
begin
result := True;
isWindowsInstall := true;
if not (FileExists(GetDefaultPip())) then
begin
HandlePythonSetup();
end;
if CurPageID = wpSelectTasks then
begin
if WizardForm <> nil then
HandleUpgrade(WizardForm.PrevAppDir);
end;
if CurPageID = wpSelectDir then
begin
{ Unclear what the logic here is. This is only executed if HandleUpgrade was not previously run. }
if Not isUpgrade then
HandleUpgrade(ExpandConstant('{app}'));
end;
end;
procedure HandlePythonSetup;
var
installPythonErrorCode : Integer;
Expand Down Expand Up @@ -506,6 +484,28 @@ begin
HandlePythonSetup();
end
end;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
begin
result := True;
isWindowsInstall := true;
if not (FileExists(GetDefaultPip())) then
begin
HandlePythonSetup();
end;
if CurPageID = wpSelectTasks then
begin
if WizardForm <> nil then
HandleUpgrade(WizardForm.PrevAppDir);
end;
if CurPageID = wpSelectDir then
begin
{ Unclear what the logic here is. This is only executed if HandleUpgrade was not previously run. }
if Not isUpgrade then
HandleUpgrade(ExpandConstant('{app}'));
end;
end;
function FailedPipNotFound() : String;
Expand Down

0 comments on commit bdc22c4

Please sign in to comment.