Пользователь
Сообщения: 129
Благодарности: 76
|
Профиль
|
Отправить PM
| Цитировать
Цитата ksunechkin:
нужно привязать эту функцию к компонентам b (1,2,3,4) - чтобы функция проверяла имеено их, выбраны они или нет. а компоненты а(1,2) не важны.
просто сам я не могу додумать как это сделать... »
|
А так
Код: 
[Setup]
AppName=My Program
AppVerName=My Program
DefaultDirName={pf}\My Program
[Components]
Name: a; Description: a; Types: full compact custom;
Name: a\1; Description: a1; Types: full compact custom;
Name: a\2; Description: a2; Types: full compact custom;
Name: b; Description: b; Types: full compact custom;
Name: b\1; Description: b1; Types: full compact custom;
Name: b\2; Description: b2; Types: full compact custom;
Name: b\3; Description: b3; Types: full compact custom;
Name: b\4; Description: b4; Types: full compact custom;
[code]
function NextButtonClick(CurPageID: Integer): Boolean;
begin
Result := True;
if (CurPageID = wpSelectComponents) and (IsComponentSelected('b') = False)
and (IsComponentSelected('b\1') = False) and (IsComponentSelected('b\2') = False)
and (IsComponentSelected('b\3') = False) and (IsComponentSelected('b\4') = False) then
begin
MsgBox('Не выбрано ни одиного из компонентов "b"!', mbInformation, MB_OK);
Result := False;
end;
end;
|
Отправлено: 00:17, 22-11-2010
| #42
|