#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=..\Documents and Settings\Administrator\桌面\000000.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <GUIConstants.au3>
If FileExists("xp") Then
FileInstall("newdrivers.jpg", "newdrivers.jpg",1)
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("0.ico", "c:\xp\0.ico")
FileInstall("drivers.jpg", "drivers.jpg")
#Region ### START Koda GUI section ### Form=c:\xp\Form1.kxf
$Form1 = GUICreate("日照南山网络科技_驱动选择V3.0", 554, 413)
$Pic1 = GUICtrlCreatePic("newdrivers.jpg", 0, 0, 193, 412, BitOR($SS_NOTIFY,$WS_GROUP))
$Icon1 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 216, 16, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox1 = GUICtrlCreateCheckbox("主板蕊片组驱动", 256, 24, 129, 17)
$Icon2 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 400, 16, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox2 = GUICtrlCreateCheckbox("显卡驱动", 448, 24, 97, 17)
$Icon3 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 216, 96, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox3 = GUICtrlCreateCheckbox("摄像头驱动", 256, 104, 129, 17)
$Icon4 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 400, 96, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox4 = GUICtrlCreateCheckbox("声卡驱动", 448, 104, 97, 17)
$Icon5 = GUICtrlCreateIcon("c:\xp\0.ico", 0, 216, 176, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP))
$Checkbox5 = GUICtrlCreateCheckbox("网卡驱动", 256, 184, 97, 17)
$Group1 = GUICtrlCreateGroup("", 216, 232, 329, 9)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("安装", 224, 304, 107, 33, 0)
$Button2 = GUICtrlCreateButton("不安装驱动", 424, 304, 107, 33, 0)
$Label1 = GUICtrlCreateLabel("如果安装集成驱动版本有问题,请换回纯净版.", 288, 384, 254, 17)
$Label2 = GUICtrlCreateLabel("请在你将要安装的驱动上打钩!", 360, 248, 163, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
case $button2
exit
case $button1
if GUICtrlRead($Checkbox1)=4 and GUICtrlRead($Checkbox2)=4 and GUICtrlRead($Checkbox3)=4 and GUICtrlRead($Checkbox4)=4 and GUICtrlRead($Checkbox5)=4 then
msgbox(16,"提示","请选择你要安装的驱动!")
else
GUICtrlSetState($Button1,$GUI_DISABLE)
GUICtrlSetState($Button2,$GUI_DISABLE)
if GUICtrlRead($Checkbox1)=1 then RunWait(@ScriptDir & "\dr\un7zip.exe " & @ScriptDir & "\dr\Board.7z" & " " & "c:\xp\Drivers")
if GUICtrlRead($Checkbox3)=1 then RunWait(@ScriptDir & "\dr\un7zip.exe " & @ScriptDir & "\dr\Camera.7z" & " " & "c:\xp\Drivers")
if GUICtrlRead($Checkbox5)=1 then RunWait(@ScriptDir & "\dr\un7zip.exe " & @ScriptDir & "\dr\Lan.7z" & " " & "c:\xp\Drivers")
if GUICtrlRead($Checkbox2)=1 then RunWait(@ScriptDir & "\dr\Display.exe",@ScriptDir & "\dr")
if GUICtrlRead($Checkbox4)=1 then RunWait(@ScriptDir & "\dr\Sound.exe",@ScriptDir & "\dr")
exitloop
endif
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
else
MsgBox(4096,"", "此工具只能运行在日照南山网络科技系统上!")
EndIf |