one-section.nsi With Modern UI
Is there a way to modify the one-section.nsi code to be used with the modern UI while still having section descriptions? I tried this but it doesn't work. The idea is to have either group 1 and any or all of its sections or group 2 selected, not both.
Function .onInit
StrCpy $1 ${SecDummy1}
FunctionEnd
Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${SecDummy}
!insertmacro RadioButton ${SecDummy4}
!insertmacro EndRadioButtons
FunctionEnd
SubSection /e "Group 1" SecDummy
Section "Option 1" SecDummy1
SetOutPath "$INSTDIR"
IfFileExists "$INSTDIR\test.txt" 0 +2
Delete "$INSTDIR\test.txt"
File "test.txt"
SectionEnd
Section "Option 2" SecDummy2
SetOutPath "$INSTDIR"
IfFileExists "$INSTDIR\test.txt" 0 +2
Delete "$INSTDIR\test.txt"
File "test.txt"
SectionEnd
Section "Option 3" SecDummy3
SetOutPath "$INSTDIR"
IfFileExists "$INSTDIR\test.txt" 0 +2
Delete "$INSTDIR\test.txt"
File "test.txt"
SectionEnd
SubSectionEnd
Section /o "Group 2" SecDummy4
SetOutPath "$INSTDIR"
IfFileExists "$INSTDIR\test.txt" 0 +2
Delete "$INSTDIR\test.txt"
File "test.txt"
SectionEnd
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy1} $(DESC_SecDummy1)
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy2} $(DESC_SecDummy2)
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy3} $(DESC_SecDummy3)
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy4} $(DESC_SecDummy4)
!insertmacro MUI_FUNCTION_DESCRIPTION_END