|
;采用360漏洞修复绿色单文件(带库自动更新),做了一个自动修复脚本,感觉不怎么完善,请大家指教
FileInstall ("360漏洞修复.exe", @ScriptDir&"\360漏洞修复.exe", 1 )
run(@ScriptDir&'\360漏洞修复.exe',@ScriptDir)
sleep(5000)
WinWaitActive("360漏洞修复","修复选中漏洞")
ControlClick("360漏洞修复","修复选中漏洞","Button4")
ControlClick("360漏洞修复","修复选中漏洞","Button5")
WinWaitActive("360漏洞修复","确定")
ControlClick("360漏洞修复","确定","Button2")
if WinExists("360漏洞修复","稍后重启") then
WinWaitActive("360漏洞修复","稍后重启")
ControlClick("360漏洞修复","稍后重启","Button3")
endif
sleep(3000)
if WinExists("360漏洞修复") then winclose("360漏洞修复")
DirRemove(@ScriptDir&'\hotfix',1)
For $i = 1 to 20
sleep(500)
if FileDelete (@ScriptDir&'\hotfix')=1 then ExitLoop
Next
FileDelete(@ScriptDir&"\360漏洞修复.exe")
For $i = 1 to 20
sleep(500)
if FileDelete ( @ScriptDir&'360漏洞修复.exe' )=1 then ExitLoop
Next
;附360漏洞修复绿色单文件下载地址
;http://freeskycd.cn/bbs/forum.ph ... 9%B6%B4%D0%DE%B8%B4 |
|