run("SETUP.EXE")
WinWaitActive("Microsoft Office 2003 安装","产品密钥")
Send("GWH28")
sleep(500)
Send("DGCMP")
sleep(500)
Send("P6RC4")
sleep(500)
Send("6J4MT")
sleep(500)
Send("3HFDY")
ControlClick("Microsoft Office 2003 安装","产品密钥","Button1")
winWaitActive("Microsoft Office 2003 安装","用户信息")
ControlClick("Microsoft Office 2003 安装","用户信息","Button1")
WinWaitActive("Microsoft Office 2003 安装","最终用户许可协议")
ControlClick("Microsoft Office 2003 安装","最终用户许可协议","Button1")
ControlClick("Microsoft Office 2003 安装","最终用户许可协议","Button2")
WinWaitActive("Microsoft Office 2003 安装","建议安装类型")
Send("!o")
sleep(500)
send("!n")
WinWaitActive("Microsoft Office 2003 安装","摘要")
ControlClick("Microsoft Office 2003 安装","摘要","Button1")
WinWaitActive("Microsoft Office 2003 安装","安装已完成")
ControlClick("Microsoft Office 2003 安装","安装已完成","Button1")
ControlClick("Microsoft Office 2003 安装","安装已完成","Button2")
WinWaitActive("Microsoft Office 2003 安装","是否确实要从缓存中删除该安装源?")
ControlClick("Microsoft Office 2003 安装","是否确实要从缓存中删除该安装源?","Button1")
run("office兼容包A.exe")
;这是一个完全安装的,但每次改自定义安装在其它机器上就会最小安装!郁闷. |