GUICreate("Install")
$Radio1 = GUICtrlCreateRadio("x86", 10, 10, 120, 20)
$Radio2 = GUICtrlCreateRadio("x64", 10, 40, 120, 20)
GUICtrlSetState($Radio1, 1) ; $GUI_CHECKED
$Button = GUICtrlCreateButton("Распаковать", 10, 70, 120, 30)
GUISetState()
Do
Switch GUIGetMsg()
Case -3
Exit
Case $Button
If GUICtrlRead($Radio1) = 1 Then
$Path = @TempDir & "\x86\"
DirCreate($Path)
FileInstall(".\x86\1_86.txt", $Path)
FileInstall(".\x86\2_86.txt", $Path)
FileInstall(".\x86\3_86.txt", $Path)
EndIf
If GUICtrlRead($Radio2) = 1 Then
$Path = @TempDir & "\x64\"
DirCreate($Path)
FileInstall(".\x64\1_64.txt", $Path)
FileInstall(".\x64\2_64.txt", $Path)
FileInstall(".\x64\3_64.txt", $Path)
EndIf
ShellExecute($Path)
Exit
EndSwitch
Until 0