Выбираю оригинал (пофиг тихая/не тихая) запускается обычная установка.
Выбираю mod (пофиг тихая/не тихая) запускается mod в тихом режиме.
Такие вот пироги...
Вот часть скрипта:
Код:
Код: Выделить всё
SectionGroup /e "Тип установки"
Section /o "Обычная" secNormal
SectionEnd
Section "Тихая" secSilent
SectionEnd
SectionGroupEnd
Section "Оригинал" secOriginal
SectionGetFlags ${secNormal} $0
${If} $0 == 1
ExecWait '$\"${OutDir}\setup.exe$\" /pSKIPPRODUCTCHECK=1'
${Else}
ExecWait '$\"${OutDir}\setup.exe$\" /pSKIPPRODUCTCHECK=1 /qn'
${EndIf}
SectionEnd
Section /o "Mod" secMod
SectionGetFlags ${secNormal} $0
${If} $0 == 1
ExecWait '$\"${OutDir}\setup.exe$\" /pSKIPPRODUCTCHECK=1 /v"TRANSFORMS=ksospc.ru.mst"'
${Else}
ExecWait '$\"${OutDir}\setup.exe$\" /pSKIPPRODUCTCHECK=1 /v"TRANSFORMS=ksospc.ru.mst /qn"'
${EndIf}
SectionEnd
Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${secNormal}
!insertmacro RadioButton ${secSilent}
!insertmacro EndRadioButtons
!insertmacro StartRadioButtons $2
!insertmacro RadioButton ${secOriginal}
!insertmacro RadioButton ${secMod}
!insertmacro EndRadioButtons
FunctionEnd
Function .OnInit
StrCpy $1 ${secSilent}
StrCpy $2 ${secOriginal}
FunctionEnd"Рожденный ползать - летать не может!"
Видать несудьба мне с этим NSIS

