It's not really your fault whistler, but when I looked at the exe's internals, I noticed that there were a couple of imports from wininet.dll for connecting to remote sites.
This made me wonder... why would you want to do that?
Turns out you don't.
You just used AutoIt! for compiling a batch script to an exe.
Now once again, this is not your fault, but you should know that isn't deemed "safe" by many antivirus programs, and I'd like to add "for good reasons", e.g. as you see it adds unwanted online code.
See the result yourself, this is what antivirus programs think about your AutoIt! generated exe:
https://www.virustotal.com/de/file/66eb1d98cc0d64e921be09c8199927936a09a6013eac9359f446185c953c4b76/analysis/1437720273/And all of this only for this script which indeed is safe in itself:
Opt("GUIOnEventMode", 1)
GUICreate("IL-2 Random Skies Launcher", 360, 130)
GUISetOnEvent($gui_event_close, "FunctionCloseButton")
Local $inifilename = "launcher.ini"
Local $iniuserskies = IniRead($inifilename, "Settings", "Selection", "Random")
GUICtrlCreateGroup("Random Skies by whistler", 10, 10, 180, 110)
Local $idradio1 = GUICtrlCreateRadio("Light", 25, 30, 80)
If $iniuserskies == "Light" Then
GUICtrlSetState($idradio1, $gui_checked)
EndIf
Local $idradio2 = GUICtrlCreateRadio("Medium", 25, 60, 80)
If $iniuserskies == "Medium" Then
GUICtrlSetState($idradio2, $gui_checked)
EndIf
Local $idradio3 = GUICtrlCreateRadio("Heavy", 25, 90, 80)
If $iniuserskies == "Heavy" Then
GUICtrlSetState($idradio3, $gui_checked)
EndIf
Local $idradio4 = GUICtrlCreateRadio("Random", 105, 30, 80)
If $iniuserskies == "Random" Then
GUICtrlSetState($idradio4, $gui_checked)
EndIf
Local $idradio5 = GUICtrlCreateRadio("Custom", 105, 60, 80)
If $iniuserskies == "Custom" Then
GUICtrlSetState($idradio5, $gui_checked)
EndIf
Local $idradio6 = GUICtrlCreateRadio("Stock", 105, 90, 80)
If $iniuserskies == "Stock" Then
GUICtrlSetState($idradio6, $gui_checked)
EndIf
GUICtrlCreateGroup("", -99, -99, 1, 1)
Local $inilauncher = IniRead($inifilename, "Settings", "Launcher", "No")
Local $idcheckbox = GUICtrlCreateCheckbox("Launch IL-2 Selector", 200, 30, 150)
If $inilauncher == "Yes" Then
GUICtrlSetState($idcheckbox, $gui_checked)
EndIf
Local $gobutton = GUICtrlCreateButton("GO !", 200, 65, 100)
GUICtrlSetOnEvent($gobutton, "FunctionGoButton")
Local $textlink = GUICtrlCreateLabel("www.sas1946.com", 200, 105)
GUICtrlSetColor($textlink, "0x808080")
GUISetState(@SW_SHOW)
While 1
Sleep(100)
WEnd
Func functiongobutton()
Select
Case BitAND(GUICtrlRead($idradio1), $gui_checked) = $gui_checked
Local $userskies = "Light"
Case BitAND(GUICtrlRead($idradio2), $gui_checked) = $gui_checked
Local $userskies = "Medium"
Case BitAND(GUICtrlRead($idradio3), $gui_checked) = $gui_checked
Local $userskies = "Heavy"
Case BitAND(GUICtrlRead($idradio4), $gui_checked) = $gui_checked
Local $userskies = "Random"
Case BitAND(GUICtrlRead($idradio5), $gui_checked) = $gui_checked
Local $userskies = "Custom"
Case BitAND(GUICtrlRead($idradio6), $gui_checked) = $gui_checked
Local $userskies = "Stock"
EndSelect
IniWrite($inifilename, "Settings", "Selection", $userskies)
If $userskies == "Stock" Then
Local $batfile = '"Files\Reset.bat"'
RunWait($batfile, "", @SW_HIDE)
Else
If $userskies == "Random" Then
Local $userskies = ""
EndIf
Local $batfile = '"Files\Random.bat" ' & $userskies
RunWait($batfile, "", @SW_HIDE)
EndIf
If BitAND(GUICtrlRead($idcheckbox), $gui_checked) = $gui_checked Then
IniWrite($inifilename, "Settings", "Launcher", "Yes")
Local $runexe = "IL-2 Selector.exe"
Else
IniWrite($inifilename, "Settings", "Launcher", "No")
Local $runexe = "il2fb.exe"
EndIf
Local $fullexe = "../../" & $runexe
Run($fullexe)
Exit
EndFunc
Func functionclosebutton()
Exit
EndFunc
Best regards - Mike