|
发表于 2010-3-13 23:41:15
|
显示全部楼层
#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=ico\update.ico
#AutoIt3Wrapper_outfile=update.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=2008-05
#AutoIt3Wrapper_Res_Description=番茄花园更新程序
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=http://www.tomatolei.com
#AutoIt3Wrapper_Res_SaveSource=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#NoTrayIcon
$g_szVersion = "TomatoUpdate"
If WinExists($g_szVersion) Then Exit
AutoItWinSetTitle($g_szVersion)
ToolTip("正在安装 Windows 更新补丁,请稍后……", @DesktopWidth - 300, @DesktopHeight - 120, "安装提示", 1, 1)
;IE7
if FileExists(@WindowsDir & "\temp\ie7\ie7.exe") then RunWait( @WindowsDir & "\temp\ie7\IE7.EXE /quiet /norestart")
sleep(1000)
FileDelete(@WindowsDir & "\temp\ie7\ie7.exe")
;WINDOWS UPDATE
FileInstall(".\buding\WUA.exe", @WindowsDir & "\temp\WUA.exe", 1)
RunWait( @WindowsDir & "\temp\WUA.exe /quiet")
sleep(1000)
FileDelete( @WindowsDir & "\temp\WUA.exe")
FileInstall(".\buding\KB892130.exe", @WindowsDir & "\temp\KB892130.exe", 1)
RunWait( @WindowsDir & "\temp\KB892130.exe /quiet")
sleep(1000)
FileDelete( @WindowsDir & "\temp\KB892130.exe")
ToolTip("正在安装 Directx 9.0c 更新库 2008年06月,请稍后……", @DesktopWidth - 300, @DesktopHeight - 120, "安装提示", 1, 1)
;DIRECTX
FileInstall(".\SOFT\DC9.0C_200806.exe", @WindowsDir & "\temp\DC9.0C_200806.exe", 1)
RunWait( @WindowsDir & "\temp\DC9.0C_200806.exe /S")
sleep(1000)
FileDelete( @WindowsDir & "\temp\DC9.0C_200806.exe")
;修复鼠标方案
$C = FileExists(@WindowsDir & "\Cursors\blue B")
if $C = 1 then
FileInstall( ".\reg\Cursors.reg", @WindowsDir & "\temp\Cursors.reg", 1)
RunWait( "REGEDIT /S " & @WindowsDir & "\temp\Cursors.reg")
FileDelete( @WindowsDir & "\temp\Cursors.reg")
EndIf
;开始菜单-禁止第一次进入系统时弹出开始面板
RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "StartMenuInit", "REG_DWORD", "00000002")
RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "StartButtonBalloonTip", "REG_DWORD", "00000002") |
|