Problem solved
Hi Red Wine!
Thank you, I found the error
I forgot to reset the Flags
SectionGetFlags ${grp1} $R0
IntOp $R0 $R0 & ${SF_SELECTED}
${If} $R0 == ${SF_SELECTED}
!insertmacro SelectSection ${g1o1}
!insertmacro UnSelectSection ${g1o2}
!insertmacro UnSelectSection ${g1o3}
${EndIf}
But now i have onother question
I want that the click on the Grp Icon' doesn't change the selection..
is this possible?
I used the following code, but i doesn't change the behavior
what I'm doing wrong?
${If} $R0 == ${SF_SELECTED}
${switch} $Matlabver
${Case} ${SEC0016}
!insertmacro SelectSection ${SEC0016}
!insertmacro UnSelectSection ${SEC0013}
!insertmacro UnSelectSection ${SEC0014}
!insertmacro UnSelectSection ${SEC0015}
${Case} ${SEC0013}
!insertmacro SelectSection ${SEC0013}
!insertmacro UnSelectSection ${SEC0016}
!insertmacro UnSelectSection ${SEC0015}
!insertmacro UnSelectSection ${SEC0014}
${Case} ${SEC0014}
!insertmacro SelectSection ${SEC0014}
!insertmacro UnSelectSection ${SEC0016}
!insertmacro UnSelectSection ${SEC0013}
!insertmacro UnSelectSection ${SEC0015}
${Case} ${SEC0015}
!insertmacro SelectSection ${SEC0015}
!insertmacro UnSelectSection ${SEC0016}
!insertmacro UnSelectSection ${SEC0013}
!insertmacro UnSelectSection ${SEC0014}
${Default}
!insertmacro SelectSection ${SEC0016}
!insertmacro UnSelectSection ${SEC0015}
!insertmacro UnSelectSection ${SEC0013}
!insertmacro UnSelectSection ${SEC0014}
${EndSwitch}
${EndIf}