templates: Don't hide path selection on first 'Static' install

Fixes #669
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-10-18 10:14:05 +02:00 committed by Xaymar
parent 142e5858d4
commit fa1d9056dc

View file

@ -334,9 +334,14 @@ end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
Result := False;
if ((not IsPortablePagePortableChoiceChecked()) and (PageID = wpSelectDir)) then begin
Result := True;
end
if (PageID = wpSelectDir) then begin
if (not IsPortablePagePortableChoiceChecked()) then begin
if (IsUpgrade()) then begin
Result := True;
Exit;
end;
end;
end;
end;
// ------------------------------------------------------------------------------------------------------------------ //