-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.au3
More file actions
101 lines (89 loc) · 3.88 KB
/
install.au3
File metadata and controls
101 lines (89 loc) · 3.88 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: pasturn
Script Function:
Front-End Development Environment.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
;InstallNodeJs();
;InstallVSCode();
InstallSVN();
;InstallFileZIlla();
Func InstallNodeJs()
ShellExecute("node.msi");
$nodejstitle = "Node.js Setup";
WinWaitActive($nodejstitle, "Welcome to the Node.js Setup Wizard");
Send("!N");
WinWaitActive($nodejstitle, "End-User License Agreement");
Send("!a");
Send("!N");
WinWaitActive($nodejstitle, "Destination Folder");
Send("!N");
WinWaitActive($nodejstitle, "Custom Setup");
Send("!N");
WinWaitActive($nodejstitle, "Ready to install Node.js");
Send("!I");
WinWaitActive($nodejstitle, "Completed the Node.js Setup Wizard");
Send("!F");
EndFunc;
Func InstallVSCode()
Run("VSCodeSetup-stable.exe");
$vscodetitle = "安装程序 - Visual Studio Code"
WinWaitActive($vscodetitle);
Send("!n");
WinWaitActive($vscodetitle, "许可协议");
Send("!a");
Send("!n");
WinWaitActive($vscodetitle, "选择目标位置");
ControlSetText($vscodetitle, "选择目标位置", "TEdit1", "D:\Program Files\Microsoft VS Code");
Send("!n");
WinWaitActive($vscodetitle, "选择开始菜单文件夹");
Send("!n");
WinWaitActive($vscodetitle, "选择其他任务");
Send("!n");
WinWaitActive($vscodetitle, "安装准备就绪");
Send("!i");
WinWaitActive($vscodetitle, "完成 Visual Studio Code 安装向导");
WinActivate($vscodetitle, "完成 Visual Studio Code 安装向导");
ControlClick($vscodetitle, "", "TNewCheckListBox1", "Left", 1, 10, 10);
Send("!f");
EndFunc;
Func InstallSVN()
ShellExecute("TortoiseSVN.msi");
$SVNTitle = "TortoiseSVN 1.9.3.27038 (64 bit) Setup"
WinWaitActive($SVNTitle, "Welcome to the TortoiseSVN 1.9.3.27038 (64 bit) Setup Wizard")
Send("!N");
WinWaitActive("TortoiseSVN 1.9.3.27038 (64 bit) License Agreement");
Send("!N");
WinWaitActive("TortoiseSVN 1.9.3.27038 (64 bit) Setup","Custom Setup");
ControlClick("TortoiseSVN 1.9.3.27038 (64 bit) Setup", "Custom Setup", "Button6", "Left", 1, 50, 10);
WinActive("TortoiseSVN 1.9.3.27038 (64 bit) Setup", "Change current destination folder");
ControlSetText("TortoiseSVN 1.9.3.27038 (64 bit) Setup", "Change current destination folder", "RichEdit20W1", "D:\Program Files\TortoiseSVN\");
ControlFocus("TortoiseSVN 1.9.3.27038 (64 bit) Setup", "Change current destination folder", "RichEdit20W1");
Send("{ENTER}");
WinActive("TortoiseSVN 1.9.3.27038 (64 bit) Setup","Custom Setup");
Send("!N");
WinWaitActive("TortoiseSVN 1.9.3.27038 (64 bit) Setup","Ready to Install");
Send("!I");
WinWaitActive("TortoiseSVN 1.9.3.27038 (64 bit) Setup","Completing the TortoiseSVN 1.9.3.27038 (64 bit) Setup Wizard");
Send("!F");
EndFunc;
Func InstallFileZilla()
Run("FileZilla.exe");
$filezillatitle = "FileZilla Client 3.17.0.1 Setup ";
WinWaitActive($filezillatitle, "License Agreement");
Send("!A");
WinWaitActive($filezillatitle, "Choose Installation Options");
Send("!N");
WinWaitActive($filezillatitle, "Choose Components");
WinActivate($filezillatitle, "Choose Components");
Send("!N");
WinWaitActive($filezillatitle, "Choose Install Location");
ControlSetText($filezillatitle, "Choose Install Location", "Button6", "D:\Program Files\FileZilla FTP Client");
Send("!N");
WinWaitActive($filezillatitle, "Choose Start Menu Folder");
Send("!I");
WinWaitActive($filezillatitle, "Completing FileZilla Client 3.17.0.1 Setup");
ControlClick($filezillatitle, "Completing FileZilla Client 3.17.0.1 Setup", "Button4", "Left", 1, 50, 10);
Send("!F");
EndFunc;