#RequireAdmin
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=icon\ppstream.ico
#AutoIt3Wrapper_outfile=ppstreamsetup.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
$title="PPS影音 V2.7.0.1310 正式版"
Run("ppstream.exe")
If WinWait($title,"PPS影音正在运行中, 安装可能遇到问题。",5) Then
WinActivate($title,"PPS影音正在运行中, 安装可能遇到问题。")
ControlClick($title,"是(&Y)","Button1","left",1)
EndIf
#cs`
If WinWait("新版本提示 - PPS影音","发现有新版本PPS影音,推荐更新以获得更好体验!",5) Then
WinActivate("新版本提示 - PPS影音","发现有新版本PPS影音,推荐更新以获得更好体验!")
ControlClick("新版本提示 - PPS影音","否(&N)","Button3","left",1)
EndIf
#ce
;PPS影音 安装向导
WinWait($title,"PPS影音 安装向导")
WinActivate($title,"PPS影音 安装向导")
ControlClick($title,"我接受(&I)","Button2","left",1)
;选择附加任务
WinWait($title,"选择附加任务")
WinActivate($title,"选择附加任务")
ControlSetText($title,"选择PPS影音安装目录","Edit1","C:\Program Files\PPStream")
ControlCommand($title,"创建PPS快捷方式","Button10","Check","")
ControlCommand($title,"安装PPS影讯屏保","Button12","UnCheck","")
ControlCommand($title,"开机PPS自动运行","Button11","UnCheck","")
ControlCommand($title,"使用PPS关联文件","Button13","UnCheck","")
ControlClick($title,"安装(&I)","Button2","left",1)
#cs
;安装 Google 工具栏
WinWait("安装 Google 工具栏","免费的 Google 工具栏,搜索更简单")
WinActivate("安装 Google 工具栏","免费的 Google 工具栏,搜索更简单")
ControlCommand("安装 Google 工具栏","安装 Google 工具栏","Button4","UnCheck","")
ControlClick("安装 Google 工具栏","下一步(&N) >","Button2","left",1)
;选择推荐软件
WinWait($title,"选择推荐软件")
WinActivate($title,"选择推荐软件")
ControlCommand($title,"PPS游戏大厅","Button4","UnCheck","")
ControlCommand($title,"360杀毒永久免费版","Button5","UnCheck","")
ControlCommand($title,"快车","Button6","UnCheck","")
ControlClick($title,"安装(&I)","Button2","left",1)
#ce
;PPS影音 完成安装
WinWait($title,"PPS影音 完成安装")
WinActivate($title,"PPS影音 完成安装")
ControlCommand($title,"运行 PPS影音","Button4","UnCheck","")
;ControlCommand($title,"设置PPS网址导航为主页","Button7","UnCheck","")
ControlClick($title,"完成(&F)","Button2","left",1)
Sleep(2000)
If ProcessExists("iexplore.exe") Then
ProcessClose("iexplore.exe")
EndIf
Exit