From f0c878aa3ef7e625374f6cb7724cb42ea113db1a Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 18 Oct 2021 10:14:05 +0200 Subject: [PATCH] templates: Don't hide path selection on first 'Static' install Fixes #669 --- templates/installer.iss.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/installer.iss.in b/templates/installer.iss.in index aeced05..6825683 100644 --- a/templates/installer.iss.in +++ b/templates/installer.iss.in @@ -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; // ------------------------------------------------------------------------------------------------------------------ //