$bt = "Adobe Reader 9.1-安装"
$type = DriveGetType("D:\")
$raw = DriveStatus("D:\")
If $type = "Fixed" And $raw <> "UNKNOWN" Then
$path = "D:\Program Files\Adobe\Reader 9.0\"
Else
$path = "C:\Program Files\Adobe\Reader 9.0\"
EndIf
Run("AdbeRdr910_zh_CN.exe")
WinWaitActive($bt,"目的地文件夹")
ControlClick($bt,"目的地文件夹","Button3")
WinWaitActive($bt,"更改当前目的地文件夹")
ControlSetText($bt,"更改当前目的地文件夹", "RichEdit20W1",$path)
ControlClick($bt,"更改当前目的地文件夹","Button1")
WinWaitActive($bt,"目的地文件夹")
ControlClick($bt,"目的地文件夹","Button1")
WinWaitActive($bt,"已做好安装程序的准备")
ControlClick($bt,"已做好安装程序的准备","Button1")
WinWaitActive($bt,"安装完成")
ControlClick($bt,"安装完成","Button1")
|