Browse Source

Загрузил(а) файлы в ''

master
paravis 2 years ago
parent
commit
7f41c55ddf
  1. 103
      Setup.au3

103
Setup.au3

@ -0,0 +1,103 @@
#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\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\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")
RunWait("%Temp%\Win_Installer\src_x64.bat", '', @SW_HIDE)
$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()
$iBtn10 = GUICtrlCreateButton("", 55, 78, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtn10, 4)
$iBtn7 = GUICtrlCreateButton("", 55, 124, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtnTC, 4)
$iBtnTC = GUICtrlCreateButton("", 55, 170, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtn7, 4)
$iBtnR = GUICtrlCreateButton("", 55, 216, 462, 40, BitOR($BS_PUSHLIKE, $BS_BITMAP))
_GUICtrlButton_SetImageList(-1, $MainImagebtnR, 4)
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
;~ exit
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
Loading…
Cancel
Save