Example:
[A]
|->[B]
|->[C]
B and C have some files in common that I want to be installed when B or C is selected.
If I put a file statment under SubSection A it produce the error:
Error: command File not valid outside section or function
10 posts
Error: command File not valid outside section or function
SectionGroup A
Section B SecB
.... code ....
SectionEnd
Section C SecC
.... code ....
SectionEnd
SectionGroupEnd
Section "-common"
SectionGetFlags ${SecB} $R0
SectionGetFlags ${SecC} $R1
IntOp $R0 $R0 | $R1
IntOp $R0 $R0 & 0x1
StrCmp $R0 "1" install noinstall
install:
File ...
File ...
noinstall:
SectionEnd