找回密码
 加入
搜索
查看: 2236|回复: 5

au3和.exe合成自动安装的QQ2009.exe

[复制链接]
发表于 2009-8-10 23:58:58 | 显示全部楼层 |阅读模式
自己终于做出了QQ2009.exe的au3,但不知怎么把QQ2009.exe和QQ2009.au3做成能够单独执行的自动安装的QQ?

--------------以下是我与2009-8-10 23:56做出来的代码



Run ("QQ2009.exe")
WinWaitActive ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009","Button1","Check","")
;选中
Send ("!n")
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button8","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button9","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button10","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button11","UnCheck","")
;选空

Send ("!n")
Send ("!i")
WinWaitActive ("腾讯QQ2009 安装向导","安装完成")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button6","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button8","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button9","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button7","UnCheck","")
;选空
Send ("!f")
发表于 2009-8-22 00:32:41 | 显示全部楼层
不可以的吧
发表于 2009-8-22 12:56:55 | 显示全部楼层
本帖最后由 sonata021 于 2009-8-22 13:00 编辑

FileInstall("QQ2009.exe", "整合文件解压后的路径也可以原文件相同目录就是直接QQ2009.exe")
发表于 2009-8-22 13:04:03 | 显示全部楼层
本帖最后由 sonata021 于 2009-8-22 13:05 编辑

就用你的代码把QQ2009和AU3脚本整合生成1个EXE
FileInstall("QQ2009.exe", "QQ2009.exe")
Run ("QQ2009.exe")
WinWaitActive ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009","Button1","Check","")
;选中
Send ("!n")
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button8","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button9","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button10","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button11","UnCheck","")
;选空

Send ("!n")
Send ("!i")
WinWaitActive ("腾讯QQ2009 安装向导","安装完成")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button6","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button8","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button9","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button7","UnCheck","")
;选空
Send ("!f")
Sleep(1000)
FileInstall("QQ2009.exe")
发表于 2009-8-25 00:31:34 | 显示全部楼层
还有个简单的方法,用7Z做一个静默自解压文件,并在"解压后运行"里填上编译过的自动安装程序,这样就可以啦~~
发表于 2010-4-9 14:34:52 | 显示全部楼层
终于找到了   谢谢楼主
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-16 16:39 , Processed in 0.079054 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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