-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathInstall Ami-Express
317 lines (256 loc) · 7.43 KB
/
Install Ami-Express
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
; Ami-Express
; $VER: Ami-Express 1.0 (09.08.2023)
(set #appver "v5.6.0")
(set #appyear "2018-2023")
(complete 0)
(set @app-name "Ami-Express")
(if (exists "BBS:" (noreq))
(set @default-dest "bbs:")
(set @default-dest "Work:")
)
;
(welcome "Welcome to the Ami-Express installation utility.\nThis will install or upgrade your installation to AmiExpress " #appver)
(set #muiver (/ (getversion "libs:muimaster.library" ) 65536) )
(set #owndevunitver (/ (getversion "libs:owndevunit.library" ) 65536) )
(set #fifolibver (/ (getversion "libs:fifo.library" ) 65536) )
(set #amissllibver (/ (getversion "libs:amisslmaster.library" ) 65536) )
(set #asynclibver (/ (getversion "libs:async.library" ) 65536) )
(if ( <> #muiver 0)
( set #muimsg "MUI: installed\n" )
( set #muimsg "MUI: not installed\n" )
)
(if ( <> #owndevunitver 0)
( set #owndevunitmsg "OwnDevUnit.library: installed\n" )
( set #owndevunitmsg "OwnDevUnit.library: not installed\n" )
)
(if ( <> #fifolibver 0)
( set #fifolibmsg "fifo handler: installed\n" )
( set #fifolibmsg "fifo handler: not installed\n" )
)
(if ( <> #amissllibver 0)
( set #amissllibmsg "amissl library: installed\n" )
( set #amissllibmsg "amissl library: not installed\n" )
)
(if ( <> #asynclibver 0)
( set #ibmcondevmsg "async.library: installed\n" )
( set #ibmcondevmsg "async.library: not installed\n" )
)
;
( if (exists "sys:wbstartup/acp" (noreq))
( set #acpname "sys:wbstartup/acp")
(
( if (exists "bbs:wbstartup/acp" (noreq))
( set #acpname "bbs:wbstartup/acp")
( set #acpname "")
)
)
)
;
(set expexists
(exists "BBS:Express" (noreq))
)
(set expexists 0)
;
(if (= expexists 0)
(
;
(message "After completion of the installation you will have a bare bones functioning bbs system installed and you will be able to use the included setup tool to customise the setup according to your preferences.\n\n(C)1989-91 Mike Thomas, Synthetic Technologies\n(C)1992-95 Joe Hodge, LightSpeed Technologies Inc.\n(C)" #appyear " Darren Coles\n\nFull documentation and the latest releases are always available at:\nhttps://github.com/dmcoles/AmiExpress\n"
)
;
(set #default-dest-installergen-temp
(askdir
(prompt "Select where you want Ami-Express installed")
(help "Select where you want Ami-Express installed.\nNo folder will be created so please ensure that you have created one if needed.")
(default @default-dest)
)
)
(set @default-dest #default-dest-installergen-temp)
;
( complete 20)
(set #acpchoice (askchoice
(choices "WBStartup (for auto startup)" "BBS: (for manual startup)" "Select a different location")
(prompt "Where would you like to install the ACP program?")
(help #cpu-help)
(default 0) ))
( if ( = #acpchoice 0)
(set #acppath "sys:wbstartup")
)
( if ( = #acpchoice 1)
(set #acppath @default-dest)
)
( if ( = #acpchoice 2)
(
(set #acppath
(askdir
(prompt "Please select the destination for the ACP file")
(help #destdir-help)
(default @default-dest) ) )
)
)
(copylib
(source "AmiExpress/BBS/Express")
(dest @default-dest)
(prompt "Copying Express")
(help @copylib-help)
(confirm "expert")
)
( complete 30)
(copylib
(source "AmiExpress/Wbstartup/ACP")
(dest #acppath)
(prompt "Copying ACP")
(help @copylib-help)
(infos)
(confirm "expert")
)
( complete 40)
(copyfiles
(prompt "Copying utils")
(help @copyfiles-help)
(confirm "expert")
(source "AmiExpress/BBS/Utils")
(dest (tackon @default-dest "Utils"))
(all)
)
( complete 50)
(copyfiles
(prompt "Copying storage")
(help @copyfiles-help)
(confirm "expert")
(source "AmiExpress/BBS/Storage")
(dest (tackon @default-dest "Storage"))
(all)
)
( complete 60)
;
(run (cat "LHA x AmiExpress/defaultbbs.lha " @default-dest)
(prompt "Copying default bbs configuration")
(help )
(confirm "expert")
)
( complete 70)
(run (cat "setenv axsetupeditor_prefs save 11" #acppath)
(prompt "Saving configuration")
(help )
(confirm "expert")
)
( complete 80)
(if (exists "BBS:" (noreq))
(set #startup "Assign doors: bbs:doors\nPath bbs:utils add\nResident SYS:Rexxc/RX pure")
(set #startup (cat "Assign bbs: " @default-dest "\nAssign doors: bbs:doors\nPath bbs:utils add\nResident SYS:Rexxc/RX pure"))
)
(startup "Ami-Express"
(prompt "Add startup items")
(help @startup-help)
(command #startup)
(confirm "expert")
)
;
) ; Else
(
;
(set install-dest bbs:)
;
(set #expressver (getversion "bbs:express" ) )
(set #acpver (getversion #acpname ) )
(set #expressverMajor (/ #expressver 65536) )
(set #expressverMinor (bitand #expressver 65535) )
(set #expressver ("%ld.%ld" #expressverMajor #expressverMinor) )
(set #acpMajor (/ #expressver 65536) )
(set #acpMinor (bitand #expressver 65535) )
(set #acpver ("%ld.%ld" #expressverMajor #expressverMinor) )
(message ("An existing installation of Ami-Express was found.\n\nThe currently installed version information is \n\nACP: %s\nExpress: %s\n\nPress proceed if you wish to continue upgrading Ami-Express.\n\nThe configuration of your bbs will not be affected and only the updated\napplication files will be overwritten.\n" #expressver #acpver)
)
( complete 10)
;
;
( complete 20)
(copylib
(source "AmiExpress/BBS/Express")
(dest "bbs:")
(prompt "Copying Express")
(help @copylib-help)
(confirm "expert")
)
( complete 40)
(set #acpdone 0)
(set #axprefs (getenv "axsetupeditor_prefs") )
(if (<> #axprefs "")
(
(set #axprefs (substr #axprefs 2 (- (strlen #axprefs) 5)))
( if (exists (tackon #axprefs "acp") (noreq))
(
(copylib
(source "AmiExpress/wbstartup/acp")
(dest #axprefs)
(prompt "Copying ACP")
(help @copylib-help)
(confirm "expert")
)
(set #acpdone 1)
)
)
)
)
( if (and (exists "sys:wbstartup/acp" (noreq))
(<> #axprefs "sys:wbstartup") )
(
(copylib
(source "AmiExpress/wbstartup/acp")
(dest "sys:wbstartup")
(prompt "Copying ACP")
(help @copylib-help)
(confirm "expert")
)
(set #acpdone 1)
)
)
( if (and (exists "bbs:acp" (noreq))
(<> #axprefs "bbs:") )
(
(copylib
(source "AmiExpress/wbstartup/acp")
(dest "bbs:")
(prompt "Copying ACP")
(help @copylib-help)
(confirm "expert")
)
(set #acpdone 1)
)
)
( if ( = #acpdone 0)
(
(set #acppath
(askdir
(prompt "Please select the location of your ACP file")
(help #destdir-help)
(default @default-dest) ) )
( if (exists (tackon #acppath "acp" ) (noreq))
(
(copylib
(source "AmiExpress/wbstartup/acp")
(dest #acppath)
(prompt "Copying ACP")
(help @copylib-help)
(confirm "expert")
)
( set #acpdone 1 )
)
)
)
)
( complete 60)
(copyfiles
(prompt "Copying utils")
(help @copyfiles-help)
(confirm "expert")
(source "AmiExpress/BBS/Utils")
(dest "BBS:Utils")
(pattern "~(rexxdoor)")
)
( complete 80)
;
)
) ; End If
( message "The MUI system is required by the Ami-Express configuration tool\nand is recommended to be installed. In addition there are optional extras that\ncan be used by Ami-Express which should be installed manually if required.\n\n" #muimsg #owndevunitmsg #fifolibmsg #amissllibmsg #ibmcondevmsg #kalacondevmsg "\nThese extras are all freely available for download on the aminet.")
(exit)