网管数据

一切问题最终都是时间问题,一切烦恼其实都是自寻烦恼。

十二月 24th, 2009

万象2004客户端自动安装工具附AU3源码

198 次, 代码汇集, by pfdiy.

万象2004客户端自动安装工具附AU3源码
使用万象2004用户市场比例不少,今天为“万象2004”用户做了个自动安装程序。
使用说明
自动安装程序同目录下 放置“Clt2K.exe”万象标准版客户端。
并且注意同目录下的 REG类型文件 将自动导入,可用于预先配置万象客户机环境。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#Region ;**** 参数创建于 AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=2004.ico
#AutoIt3Wrapper_outfile=万象2004自动安装器V1.0.exe
#AutoIt3Wrapper_UseAnsi=y
#AutoIt3Wrapper_Res_Comment=万象网管2004自动安装器
#AutoIt3Wrapper_Res_Description=万象网管2004 For 2000/XP 客户端
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=TVZML作品
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
$title = \"安装 - 万象网管2004 For 2000/XP 客户端\"
$file = \"Clt2K.exe\"
if not FileExists($file) Then
MsgBox (16,\"错误\",\"当前目录没有找到万象2004客户端 \"&$file&\"\")
Exit
EndIf
if ProcessExists(\"Clsmn.exe\") Then
MsgBox (49,\"安装\",\"安装程序发现 万象网管2004 For 2000/XP 客户端 当前正在运行。\"&@CRLF&@CRLF&\"请先关闭所有运行的窗口。\")
Exit
EndIf
hotkeyset(\"{esc}\", \"captureesc\")
progresson($title, \"按ESC取消安装...\", \"0 % \")
for $i = 1 to 100 step 1
sleep(30)
progressset( $i, $i & \"\")
next
progressoff()
Run($file)
$search = FileFindFirstFile(\"*.reg\")
While 1
$regfile = FileFindNextFile($search)
If $regfile = \"\" Then ExitLoop
RunWait(@ComSpec & \" /c \" & \"regedit /s \"&$regfile)
If @error Then ExitLoop
WEnd
FileClose($search)
winwaitactive($title, \"推荐您在继续安装前关闭所有其它应用程序\")
controlclick($title, \"推荐您在继续安装前关闭所有其它应用程序\",\"TButton1\")
winwaitactive($title, \"许可协议\")
controlcommand($title, \"许可协议\",\"TRadioButton1\",\"check\")
controlclick($title, \"许可协议\",\"TButton2\")
winwaitactive($title, \"请在继续安装前阅读下列重要信息\")
controlclick($title, \"请在继续安装前阅读下列重要信息\",\"TButton2\")
winwaitactive($title, \"你想要使用什么协议和端口号\")
controlclick($title, \"你想要使用什么协议和端口号\",\"TButton2\")
winwaitactive($title, \"您想在哪里放置程序的快捷方式\")
controlclick($title, \"您想在哪里放置程序的快捷方式\",\"TButton3\")
BlockInput(1)
winwaitactive($title, \"您想要安装程序执行哪些附加任务\")
Sleep(500)
send (\"{SPACE}\")
send (\"{TAB}\")
send (\"{SPACE}\")
send (\"{TAB}\")
send (\"{SPACE}\")
Sleep(500)
controlclick($title, \"您想要安装程序执行哪些附加任务\",\"TButton3\")
BlockInput(0)
winwaitactive($title, \"安装程序现在准备开始安装\")
controlclick($title, \"安装程序现在准备开始安装\",\"TButton3\")
winwaitactive($title, \"稍后重新启动电脑\")
controlcommand($title, \"稍后重新启动电脑\",\"TRadioButton2\",\"check\")
controlclick($title, \"稍后重新启动电脑\",\"TButton3\")
func captureesc()
progressoff()
exit
endfunc
文件名称:万象2004自动安装器V1.0
文件版本:V1.0
授权方式:exe
文件大小:222 k
文件类型:rar
发布时间:2009-12-24
下载地址:微软网盘

相关文章

Back Top

回复自“万象2004客户端自动安装工具附AU3源码”

评论 (2) 引用 (0) 发表评论 引用地址
  1. 这个东西不错,呵呵

  1. 没有任何引用。

Back Top

发表回复