Koda Section--
$OS = GUICtrlCreateRadio("Select OS Only", 110, 312, 129, 25)
GUICtrlSetFont(-1, 10, 800, 0, $GUIFont)
$OSPlusApps = GUICtrlCreateRadio("Select OS & Apps", 280, 312, 129, 25)
GUICtrlSetFont(-1, 10, 800, 0, $GUIFont)
GUICtrlSetState($OSPlusApps, $gui_checked)
From the function--
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $OS
$strOS = True
$strOSPlusApps = False
Case $msg = $OSPlusApps
$strOSPlusApps = True
$strOS = False
Vbs filewrite--
IF $strOS Then FileWriteLine($OutFile, "TSEnv(" & Chr(34) & "OSOnly" & Chr(34) & ") = " & Chr(34) & $strOS & Chr(34))
IF $strOS Then FileWriteLine($OutFile, "TSEnv(" & Chr(34) & "OSWithApps" & Chr(34) & ") = " & Chr(34) & $strOSPlusApps & Chr(34))
IF $strOSPlusApps Then FileWriteLine($OutFile, "TSEnv(" & Chr(34) & "OSWithApps" & Chr(34) & ") = " & Chr(34) & $strOSPlusApps & Chr(34))
IF $strOSPlusApps Then FileWriteLine($OutFile, "TSEnv(" & Chr(34) & "OSOnly" & Chr(34) & ") = " & Chr(34) & $strOS & Chr(34))