Skip to content
⌘ NSIS Forum Archive

Mui_unpage_components

3 posts

joshhh#

Mui_unpage_components

I want to make Uninstall components page

SubSection "Uninstall"

Section "Full" g1o1
SectionEnd

Section /o "Custom" g1o2
SectionEnd

SubSectionEnd

Function .onInit
StrCpy $1 ${g1o1}
FunctionEnd

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${g1o1}
!insertmacro RadioButton ${g1o2}
!insertmacro EndRadioButtons
FunctionEnd
but compiler says you must close "Uninstall" section first

SubSection "Uninstall"
SubSectionEnd

Section "Full" g1o1
SectionEnd

Section /o "Custom" g1o2
SectionEnd

Function .onInit
StrCpy $1 ${g1o1}
FunctionEnd

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${g1o1}
!insertmacro RadioButton ${g1o2}
!insertmacro EndRadioButtons
FunctionEnd
but when i do that sections "Full" and "Custom" in MUI_PAGE_COMPONENTS now. What i do wrong? Please help. 🙁
Joost Verburg#
The uninstaller sections should start with the .un prefix.

The section called "Uninstall" will always be executed and is hidden (it's the same as a hidden section with the un. prefix).