本帖最后由 Ycxw2008 于 2011-10-1 09:03 编辑
发现盛大好流氓了#RequireAdmin
#Region **** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon="mir2_Setup20110928.exe|-1"
#AutoIt3Wrapper_outfile="mir2_Setup20110928[_ZD.EXE"
$WinTitle = "《热血传奇》十一周年版 安装"
If Run("mir2_Setup20110928.exe") = 0 Then ShellExecute("mir2_Setup20110928.exe")
WinWaitActive($WinTitle,"欢迎使用 《热血传奇》十一周年版 安装向导")
ControlClick($WinTitle,"欢迎使用 《热血传奇》十一周年版 安装向导","Button5")
WinWaitActive($WinTitle,"许可协议")
ControlClick($WinTitle,"许可协议","Button5")
WinWaitActive($WinTitle,"选择安装位置")
ControlSetText($WinTitle,"选择安装位置","Edit1","D:\盛大网络\热血传奇")
ControlClick($WinTitle,"选择安装位置","Button5")
WinWaitActive($WinTitle,"是否需要安装360安全卫士?")
ControlClick($WinTitle,"是否需要安装360安全卫士?","Button2")
WinWaitActive($WinTitle,"《热血传奇》十一周年版安装完成!")
ControlClick($WinTitle,"《热血传奇》十一周年版安装完成!","Button7")
ControlClick($WinTitle,"《热血传奇》十一周年版安装完成!","Button8")
ControlClick($WinTitle,"《热血传奇》十一周年版安装完成!","Button9")
ControlClick($WinTitle,"《热血传奇》十一周年版安装完成!","Button10")
ControlClick($WinTitle,"《热血传奇》十一周年版安装完成!","Button5")
Sleep(1500)
If ProcessExists("SddSUpdate.exe") Then
ProcessClose("SddSUpdate.exe")
EndIf
Sleep(2000)
FileDelete(@DesktopCommonDir & "\起点中文网.lnk")
FileDelete(@Desktopdir & "\盛大下载器.lnk")
RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","盛大下载器自动启动")
RegDelete("HKLM\SYSTEM\CurrentControlSet\services\SdDUpdService")
|