找回密码
 加入
搜索
查看: 5358|回复: 10

[原创] 飞信2009安装脚本发布

 火.. [复制链接]
发表于 2009-11-12 20:24:10 | 显示全部楼层 |阅读模式
本帖最后由 pjydsj 于 2009-11-12 20:36 编辑

FileInstall('Fetion2009.exe',@TempDir & '\Fetion2009.exe')
Run(@TempDir & '\Fetion2009.exe')
$A='Fetion2008 安装'
$B='Fetion2008 解除安装'
If        WinWaitActive($A,'您已经安装了一个相同的版本',1) Then
        ControlClick($A,'您已经安装了一个相同的版本','Button2')
        WinWaitActive($A,'安装程序将首先卸载已经安装的版本')
        ControlClick($A,'安装程序将首先卸载已经安装的版本','Button1')
        WinWaitActive($B,'即将卸载')
        Send('!N')
        WinWaitActive($B,'卸载 Fetion2008')
        Send('!U')
        WinWaitActive($B,'已从您的计算机卸载')
        Send('!F')
        WinWaitActive($A,'选择安装位置')
        ControlSetText($A,'选择安装位置','Edit1','D:\Program Files\China Mobile\Fetion')
        Send('!I')
        WinWaitActive($A,'已经成功安装')
        ControlCommand($A,'已经成功安装','Button4','Uncheck')
        ControlCommand($A,'已经成功安装','Button8','Uncheck')
        ControlCommand($A,'已经成功安装','Button9','Uncheck')
        Send('!F')
EndIf
If WinWaitActive($A,'欢迎使用Fetion2008',1) Then
        ControlClick($A,'欢迎使用Fetion2008','Button2')
        WinWaitActive($A,'选择安装位置')
        ControlSetText($A,'选择安装位置','Edit1','D:\Program Files\China Mobile\Fetion')
        Send('!I')
        WinWaitActive($A,'已经成功安装')
        ControlCommand($A,'已经成功安装','Button4','Uncheck')
        ControlCommand($A,'已经成功安装','Button8','Uncheck')
        ControlCommand($A,'已经成功安装','Button9','Uncheck')
        Send('!F')
EndIf

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2009-11-18 17:55:22 | 显示全部楼层
支持一下  学习了
发表于 2009-11-30 19:56:43 | 显示全部楼层
晕之
发表于 2009-12-1 09:01:09 | 显示全部楼层
学习一下····················
发表于 2009-12-14 23:33:23 | 显示全部楼层
啥时候出2009了,官方怎么没见有
发表于 2009-12-21 09:22:43 | 显示全部楼层
支持一下  学习了
发表于 2009-12-21 09:25:02 | 显示全部楼层
购买了,但下不了.
发表于 2009-12-24 04:37:37 | 显示全部楼层
赚够金币再过来买
发表于 2009-12-25 10:51:41 | 显示全部楼层
代码有点复杂注意优化一下
发表于 2010-1-29 23:50:21 | 显示全部楼层
还可以,支持下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-7 10:08 , Processed in 0.077546 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表