多项单选
优质
小牛编辑
130浏览
2023-12-01
引用脚本内容:
Name "Test" OutFile "Test.exe" !include "Sections.nsh" Var RADIOBUTTON Page components Page instfiles Section "Win 98" Read98 MessageBox MB_OK "You select Win98" SectionEnd Section /o "Win 2000" Read2000 MessageBox MB_OK "You select Win2000" SectionEnd Section /o "WinXP" ReadXP MessageBox MB_OK "You select WinXP" SectionEnd Section /o "Win2003" Read2003 MessageBox MB_OK "You select Win2003" SectionEnd Function .onInit StrCpy $RADIOBUTTON ${Read98} FunctionEnd Function .onSelChange !insertmacro StartRadioButtons $RADIOBUTTON !insertmacro RadioButton ${Read98} !insertmacro RadioButton ${Read2000} !insertmacro RadioButton ${ReadXP} !insertmacro RadioButton ${Read2003} !insertmacro EndRadioButtons FunctionEnd