Hier mal ein Beispielskript. Ich hoffe halbwegs verständlich!
Spoiler anzeigen
#include <GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]GUICreate("Meine Checkboxen für die Installationsauswahl")
[/autoit] [autoit][/autoit] [autoit]$check1 = GUICtrlCreateCheckbox("Programm 1", 10, 10, 120, 20)
$check2 = GUICtrlCreateCheckbox("Programm 2", 10, 30, 120, 20)
$check3 = GUICtrlCreateCheckbox("Programm 3", 10, 50, 120, 20)
$Button = GUICtrlCreateButton("Installieren", 10, 70)
GUISetState()
[/autoit] [autoit][/autoit] [autoit]While 1
$msg = GUIGetMsg()
If $msg = $Button Then
$Install1= GUICtrlRead($check1)
$Install2= GUICtrlRead($check2)
$Install3= GUICtrlRead($check3)
Prog_1($Install1)
Prog_2($Install2)
Prog_3($Install3)
EndIf
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
Func Prog_1($On)
If $On = 1 Then MsgBox(64,"Installation","Programm 1 wurde installiert")
EndFunc
Func Prog_2($On)
If $On = 1 Then MsgBox(64,"Installation","Programm 2 wurde installiert")
EndFunc
Func Prog_3($On)
If $On = 1 Then MsgBox(64,"Installation","Programm 3 wurde installiert")
EndFunc