Access the data of a radio button in Inno Setup?

1

Create a page based on a answer of my question How to create an options page in Inno Setup? , the only thing I do not understand is how to grab the one that is selected to create the condition.
Could someone explain to me how to do it?

Here I leave my code:

InstallTypePage := CreateInputOptionPage(wpSelectDir,'Texto1', 'Texto2', 'Texto3', True, False);

    //Crea los radio buttons en esta página
    InstallTypePageID := InstallTypePage.ID;
    InstallTypePage.Add('Instalar');
    InstallTypePage.Add('Reparar');
    InstallTypePage.Add('Desinstalar'); 
    
asked by Joesatriani10 21.07.2017 в 19:36
source

1 answer

0

It is accessed as follows:

InstallTypePage.Values[0] //Instalar
InstallTypePage.Values[1] //Reparar
InstallTypePage.Values[2] //Desinstalar

For example, if you want to create a condition depending on the selected value, it would be:

if(InstallTypePage.Values[0] = True) then
  begin
    //Aqui el codigo que quieres ejecutar
  end;
    
answered by 21.07.2017 / 20:01
source