$title= "PPS影音"
$path=StringLeft(@ScriptDir, StringInStr(@ScriptDir, "", 0, -1));取得上级目录路径,
$soft=$path&"PPS网络电视.exe";安装程序的路径,
If FileExists($soft) = 0 Then Exit
;========检测是否安装此软件,已安装则自动退出脚本==============
For $i =1 To 1000
$read=RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",$i)
If $read = "PPStream" Then
Exit
EndIf
Next
ShellExecute($soft)
WinWait($title,"PPS影音 安装向导")
ControlClick($title,"PPS影音 安装向导","下一步(&N) >")
WinWait($title,"选择附加任务")
ControlClick($title,"选择附加任务","创建快速启动快捷方式")
sleep(100)
ControlClick($title,"选择附加任务","开机自动运行PPS影音")
sleep(100)
ControlClick($title,"选择附加任务","安装PPS影讯屏保")
sleep(100)
ControlClick($title,"选择附加任务","下一步(&N) >")
WinWait($title,"选择文件关联")
ControlCommand ($title,"选择文件关联","ComboBox1","SetCurrentSelection","2")
sleep(100)
ControlClick($title,"选择文件关联","Button2")
WinWait("安装","免费的Google工具栏",1)
ControlClick("安装","免费的","安装 Google 工具栏")
sleep(100)
ControlClick("安装","免费的","下一步(&N) >")
WinWait($title,"选择推荐软件",1)
If WinExists($title,"选择推荐软件")=1 Then
WinWait($title,"选择推荐软件")
ControlClick($title,"选择推荐软件","全不选")
sleep(100)
ControlClick($title,"选择推荐软件","安装(&I)")
WinWait($title,"完成(&F)")
ProcessClose ("PPS网络电视.exe")
Exit
Else
WinWait($title,"完成(&F)")
ProcessClose ("PPS网络电视.exe")
EndIf