How to hide a page depending on a variable in Inno Setup?

2

I need to hide a page in Inno Setup depending on one of a variable boolean in Inno Setup, how can I do it?

    
asked by Joesatriani10 26.07.2017 в 20:35
source

1 answer

2

You need to create a condition with the ShouldSkipPage function, in [Code] section :

function ShouldSkipPage(PageID: Integer): Boolean;
  begin
    if(PageID = TU_PAGINA.ID) and (TU_VARIABLE = True) then
      begin
        Result := True; //al regresar true se omite la pagina
      end;
  end;
    
answered by 26.07.2017 / 23:59
source