[SOURCE="inno"][Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
ComponentsListTVStyle=true
[Components]
Name: Rus; Description: Русская версия; Flags: exclusive; Types: full
Name: Eng; Description: Английская версия; Flags: exclusive
Name: Mods; Description: Моды (Rus):; Types: full; Flags: collapsed
Name: Mods\Weapons; Description: HD оружия; Types: full
Name: Mods\Cars; Description: Новые машины; Types: full
Name: Mods\Lens; Description: Качественные фары; Types: full
Name: Mods\VisualIV; Description: Установить мод VisualIV; Types: full
Name: Mods2; Description: Моды (Eng):; Types: full; Flags: collapsed
Name: Mods2\Asi_Loader; Description: Загрузчик скриптов; Types: full
Name: Mods2\Simple_Native_Trainer; Description: Трэйнер; Types: full
Name: Mods2\Trafic_Loader; Description: Разнообразный траффик; Types: full
Код:
procedure ComponentsClick(Sender: TObject);
begin
with WizardForm.ComponentsList do begin
if Checked[1] then begin
ItemEnabled[2]:= False;
ItemEnabled[3]:= False;
ItemEnabled[4]:= False;
ItemEnabled[5]:= False;
ItemEnabled[6]:= False;
ItemEnabled[7]:= True;
ItemEnabled[8]:= True;
ItemEnabled[9]:= True;
ItemEnabled[10]:= True;
end else begin
ItemEnabled[2]:= True;
ItemEnabled[3]:= True;
ItemEnabled[4]:= True;
ItemEnabled[5]:= True;
ItemEnabled[6]:= True;
ItemEnabled[7]:= False;
ItemEnabled[8]:= False;
ItemEnabled[9]:= False;
ItemEnabled[10]:= False;
end;
end;
end;
procedure InitializeWizard();
begin
with WizardForm.ComponentsList do begin
OnClickCheck:= @ComponentsClick;
ComponentsClick(nil);
end;
end;
[/SOURCE][/SPOILER]