Цитата navab:
K.A.V., сделал как Вы написали, всегда выскакивают 3 окна с указанием директории, сколько бы компонентов не было выбрано. »
|
Я вам дал часть проблемного кода, из-за которого вы получали ошибку компиляции
Код:
var Component1Dir
var Component2Dir
var Component3Dir
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_PAGE_CUSTOMFUNCTION_PRE Component1DirPre
!define MUI_DIRECTORYPAGE_VARIABLE $Component1Dir
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_PAGE_CUSTOMFUNCTION_PRE Component2DirPre
!define MUI_DIRECTORYPAGE_VARIABLE $Component2Dir
!insertmacro MUI_PAGE_DIRECTORY
!define MUI_PAGE_CUSTOMFUNCTION_PRE Component3DirPre
!define MUI_DIRECTORYPAGE_VARIABLE $Component3Dir
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
Section TEST1 Component1
SetOutPath "$Component1Dir"
# File "..."
# File "..."
SectionEnd
Section TEST2 Component2
SetOutPath "$Component2Dir"
# File "..."
# File "..."
SectionEnd
Section TEST3 Component3
SetOutPath "$Component3Dir"
# File "..."
# File "..."
SectionEnd
Function Component1DirPre
SectionGetFlags ${Component1} $R0
IntOp $R0 $R0 & 1
StrCmp $R0 "1" +2 0
Abort
FunctionEnd
Function Component2DirPre
SectionGetFlags ${Component2} $R0
IntOp $R0 $R0 & 1
StrCmp $R0 "1" +2 0
Abort
FunctionEnd
Function Component3DirPre
SectionGetFlags ${Component3} $R0
IntOp $R0 $R0 & 1
StrCmp $R0 "1" +2 0
Abort
FunctionEnd