Natrix
Новичок
Всем доброго времени суток.
Подскажите пожалуйста, почему при выборе компонента в данном скрипте "v" устанавливается всё не смотря на остальной выбор?
Подскажите пожалуйста, почему при выборе компонента в данном скрипте "v" устанавливается всё не смотря на остальной выбор?
Код:
[Types]
Name: full; Description: Full installation; Flags: iscustom
[Components]
Name: t; Description: qwerty; Types: full; Flags: fixed
Name: t\r; Description: qwerty1; Flags: exclusive
Name: t\e; Description: qwerty2; Flags: exclusive
Name: v; Description: abc; Types: full
[Code]
Comps1:=0; Comps2:=0; Comps3:=0;
TmpValue:=1;
if IsComponentSelected('t\r') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*2;
if IsComponentSelected('t\e') then Comps1:=Comps1+TmpValue;
TmpValue:=TmpValue*3;
if IsComponentSelected('v') then Comps1:=Comps1+TmpValue;
if not ISArcExtract ( 0, 0, ExpandConstant('{src}\1.7z'), ExpandConstant('{app}\'), '', false, '', notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 1, 0, ExpandConstant('{src}\2.7z'), ExpandConstant('{app}\'), '', false, '', notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 2, 0, ExpandConstant('{src}\3.7z'), ExpandConstant('{app}\'), '', false, '', notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 3, 0, ExpandConstant('{src}\4.7z'), ExpandConstant('{app}\'), '', false, '', notPCFonFLY {PCFonFLY}) then break;
Последнее редактирование: