You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

123 lines
5.8 KiB

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GuiButton.au3>
#include <GUIConstantsEx.au3>
#include <GuiImageList.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#NoTrayIcon
Opt("ExpandEnvStrings", 1)
DirCreate("%Temp%\Win_Installer")
FileInstall("Res\main.bmp", "%Temp%\Win_Installer\main.bmp")
FileInstall("Res\w111.bmp", "%Temp%\Win_Installer\w111.bmp")
FileInstall("Res\w112.bmp", "%Temp%\Win_Installer\w112.bmp")
FileInstall("Res\w113.bmp", "%Temp%\Win_Installer\w113.bmp")
FileInstall("Res\w101.bmp", "%Temp%\Win_Installer\w101.bmp")
FileInstall("Res\w102.bmp", "%Temp%\Win_Installer\w102.bmp")
FileInstall("Res\w103.bmp", "%Temp%\Win_Installer\w103.bmp")
FileInstall("Res\w71.bmp", "%Temp%\Win_Installer\w71.bmp")
FileInstall("Res\w72.bmp", "%Temp%\Win_Installer\w72.bmp")
FileInstall("Res\w73.bmp", "%Temp%\Win_Installer\w73.bmp")
FileInstall("Res\TC1.bmp", "%Temp%\Win_Installer\TC1.bmp")
FileInstall("Res\TC2.bmp", "%Temp%\Win_Installer\TC2.bmp")
FileInstall("Res\TC3.bmp", "%Temp%\Win_Installer\TC3.bmp")
FileInstall("Res\reboot1.bmp", "%Temp%\Win_Installer\reboot1.bmp")
FileInstall("Res\reboot2.bmp", "%Temp%\Win_Installer\reboot2.bmp")
FileInstall("Res\reboot3.bmp", "%Temp%\Win_Installer\reboot3.bmp")
FileInstall("Res\w11.cmd", "%Temp%\Win_Installer\w11.cmd")
FileInstall("Res\w10.cmd", "%Temp%\Win_Installer\w10.cmd")
FileInstall("Res\w7.cmd", "%Temp%\Win_Installer\w7.cmd")
FileInstall("Res\TCx64.bat", "%Temp%\Win_Installer\TCx64.bat")
FileInstall("Res\src_x64.bat", "%Temp%\Win_Installer\src_x64.bat")
FileInstall("Res\no7x64.exe", "%Temp%\Win_Installer\no7x64.exe")
FileInstall("Res\no10x64.exe", "%Temp%\Win_Installer\no10x64.exe")
FileInstall("Res\no11x64.exe", "%Temp%\Win_Installer\no11x64.exe")
RunWait("%Temp%\Win_Installer\src_x64.bat", '', @SW_HIDE)
$MainImagebtn11 = _GUIImageList_Create(462, 40)
_GUIImageList_AddBitmap($MainImagebtn11, "%Temp%\Win_Installer\w111.bmp")
_GUIImageList_AddBitmap($MainImagebtn11, "%Temp%\Win_Installer\w112.bmp")
_GUIImageList_AddBitmap($MainImagebtn11, "%Temp%\Win_Installer\w113.bmp")
_GUIImageList_AddBitmap($MainImagebtn11, "%Temp%\Win_Installer\w111.bmp")
_GUIImageList_AddBitmap($MainImagebtn11, "%Temp%\Win_Installer\w111.bmp")
_GUIImageList_AddBitmap($MainImagebtn11, "%Temp%\Win_Installer\w111.bmp")
$MainImagebtn10 = _GUIImageList_Create(462, 40)
_GUIImageList_AddBitmap($MainImagebtn10, "%Temp%\Win_Installer\w101.bmp")
_GUIImageList_AddBitmap($MainImagebtn10, "%Temp%\Win_Installer\w102.bmp")
_GUIImageList_AddBitmap($MainImagebtn10, "%Temp%\Win_Installer\w103.bmp")
_GUIImageList_AddBitmap($MainImagebtn10, "%Temp%\Win_Installer\w101.bmp")
_GUIImageList_AddBitmap($MainImagebtn10, "%Temp%\Win_Installer\w101.bmp")
_GUIImageList_AddBitmap($MainImagebtn10, "%Temp%\Win_Installer\w101.bmp")
$MainImagebtn7 = _GUIImageList_Create(462, 40)
_GUIImageList_AddBitmap($MainImagebtn7, "%Temp%\Win_Installer\TC1.bmp")
_GUIImageList_AddBitmap($MainImagebtn7, "%Temp%\Win_Installer\TC2.bmp")
_GUIImageList_AddBitmap($MainImagebtn7, "%Temp%\Win_Installer\TC3.bmp")
_GUIImageList_AddBitmap($MainImagebtn7, "%Temp%\Win_Installer\TC1.bmp")
_GUIImageList_AddBitmap($MainImagebtn7, "%Temp%\Win_Installer\TC1.bmp")
_GUIImageList_AddBitmap($MainImagebtn7, "%Temp%\Win_Installer\TC1.bmp")
$MainImagebtnTC = _GUIImageList_Create(462, 40)
_GUIImageList_AddBitmap($MainImagebtnTC, "%Temp%\Win_Installer\w71.bmp")
_GUIImageList_AddBitmap($MainImagebtnTC, "%Temp%\Win_Installer\w72.bmp")
_GUIImageList_AddBitmap($MainImagebtnTC, "%Temp%\Win_Installer\w73.bmp")
_GUIImageList_AddBitmap($MainImagebtnTC, "%Temp%\Win_Installer\w71.bmp")
_GUIImageList_AddBitmap($MainImagebtnTC, "%Temp%\Win_Installer\w71.bmp")
_GUIImageList_AddBitmap($MainImagebtnTC, "%Temp%\Win_Installer\w71.bmp")
$MainImagebtnR = _GUIImageList_Create(462, 40)
_GUIImageList_AddBitmap($MainImagebtnR, "%Temp%\Win_Installer\reboot1.bmp")
_GUIImageList_AddBitmap($MainImagebtnR, "%Temp%\Win_Installer\reboot2.bmp")
_GUIImageList_AddBitmap($MainImagebtnR, "%Temp%\Win_Installer\reboot3.bmp")
_GUIImageList_AddBitmap($MainImagebtnR, "%Temp%\Win_Installer\reboot1.bmp")
_GUIImageList_AddBitmap($MainImagebtnR, "%Temp%\Win_Installer\reboot1.bmp")
_GUIImageList_AddBitmap($MainImagebtnR, "%Temp%\Win_Installer\reboot1.bmp")
$main = GUICreate("Windows Setup by Paravis", 572, 323, -1, -1, $WS_POPUP)
GUICtrlCreatePic("%Temp%\Win_Installer\main.bmp", 0, 0, 572, 323)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState()
$iBtn11 = GUICtrlCreateButton("", 55, 50, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtn11, 4)
$iBtn10 = GUICtrlCreateButton("", 55, 96, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtn10, 4)
$iBtn7 = GUICtrlCreateButton("", 55, 142, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtnTC, 4)
$iBtnTC = GUICtrlCreateButton("", 55, 188, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtn7, 4)
$iBtnR = GUICtrlCreateButton("", 55, 234, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtnR, 4)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
;~ exit
Case $iBtn11
GUISetState(@SW_HIDE, $main)
RunWait(@TempDir & "\Win_Installer\W11.cmd", "", @SW_HIDE)
GUISetState(@SW_SHOW, $main)
Case $iBtn10
GUISetState(@SW_HIDE, $main)
RunWait(@TempDir & "\Win_Installer\W10.cmd", "", @SW_HIDE)
GUISetState(@SW_SHOW, $main)
Case $iBtn7
GUISetState(@SW_HIDE, $main)
RunWait(@TempDir & "\Win_Installer\W7.cmd", "", @SW_HIDE)
GUISetState(@SW_SHOW, $main)
Case $iBtnTC
GUISetState(@SW_HIDE, $main)
RunWait(@TempDir & "\Win_Installer\TCx64.bat", "", @SW_HIDE)
GUISetState(@SW_SHOW, $main)
Case $iBtnR
Shutdown(2)
EndSwitch
WEnd