You have to put my Switch-Statement outside of your Select-Statement just before your Filewriteline. Something like this:
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Finish
;Something else
EndSelect
Switch $GUI_CHECKED
Case GUICtrlRead($OS)
$strOS = True
$strOSPlusApps = False
Case GUICtrlRead($OSPlusApps)
$strOS = False
$strOSPlusApps = True
EndSwitch
Could you please post more of your code or pm it to me, if you don't want it to be made public?