I would like this too, so I tried this and seems to work:
The trick is to find the 0-based index out of the dynamic listview. This is accomplished by first search the item via _GUICtrlListView_FindText (search for the text eg. "7-zip.exe" in the list and return the 0-based index). The _GUICtrlListView_SetItemChecked changes the state of the checkbox, but really needs the 0-based index.
For $i = 1 To UBound($array) Step 1
$category = IniRead($iniFile, $array[$i - 1], "Category", "5")
$desc = IniRead($iniFile, $array[$i - 1], "Desc", "")
$checked = IniRead($iniFile,$array[$i - 1],"Default", "")
If $category = 1 Then
GUICtrlCreateListViewItem($array[$i - 1] & "|" & $desc, $ListView1)
if $checked = "True" Then
$iI = _GUICtrlListView_FindText($ListView1, $array[$i - 1]) ;Get 0-based index of current created control
_GUICtrlListView_SetItemChecked($ListView1, $iI, True) ;Set checked radiobox of last found control
EndIf
ElseIf $category = 2 Then
GUICtrlCreateListViewItem($array[$i - 1] & "|" & $desc, $ListView2)
if $checked = "True" Then
$iI = _GUICtrlListView_FindText($ListView2, $array[$i - 1]) ;Get 0-based index of current created control
_GUICtrlListView_SetItemChecked($ListView2, $iI, True) ;Set checked radiobox of last found control
EndIf
ElseIf $category = 3 Then
GUICtrlCreateListViewItem($array[$i - 1] & "|" & $desc, $ListView3)
if $checked = "True" Then
$iI = _GUICtrlListView_FindText($ListView3, $array[$i - 1]) ;Get 0-based index of current created control
_GUICtrlListView_SetItemChecked($ListView3, $iI, True) ;Set checked radiobox of last found control
EndIf
ElseIf $category = 4 Then
GUICtrlCreateListViewItem($array[$i - 1] & "|" & $desc, $ListView4)
if $checked = "True" Then
$iI = _GUICtrlListView_FindText($ListView4, $array[$i - 1]) ;Get 0-based index of current created control
_GUICtrlListView_SetItemChecked($ListView4, $iI, True) ;Set checked radiobox of last found control
EndIf
ElseIf $category = 6 Then
GUICtrlCreateListViewItem($array[$i - 1] & "|" & $desc, $ListView6)
if $checked = "True" Then
$iI = _GUICtrlListView_FindText($ListView6, $array[$i - 1]) ;Get 0-based index of current created control
_GUICtrlListView_SetItemChecked($ListView6, $iI, True) ;Set checked radiobox of last found control
EndIf
Else
GUICtrlCreateListViewItem($array[$i - 1] & "|" & $desc, $ListView5)
if $checked = "True" Then
$iI = _GUICtrlListView_FindText($ListView5, $array[$i - 1]) ;Get 0-based index of current created control
_GUICtrlListView_SetItemChecked($ListView5, $iI, True) ;Set checked radiobox of last found control
EndIf
EndIf
Next