-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSETUP.RUN
997 lines (996 loc) · 34.2 KB
/
SETUP.RUN
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
.Object Name: SETUP+
.REV: 1.0 DATE: 20140415
*===============================================================================
* SETUP+ Installation Package *
* Copyright (c) 2014 - John Thalhuber Associates (JTA) *
* -------------------------------------------------------------------------- *
* The SETUP+ installation package (program code, table/file structures and *
* methodology) may not be reused or distributed, in whole or part, without *
* the expressed consent of JTA. No warranty is provided or implied, and JTA *
* will assume no liability for defects or problems resulting from its use. *
*===============================================================================
@.
@ RER,0,E,2 0001 RAR 0196 .
@.dbg LDV <*PTH>s256='D:\users\winne\sublwatcher\site-e\sublwatcher\setup.run' .
@ CALL 0001() .
@ IF CDRW$ ne 0 ESR ; IF LINK$ ne 0,(END) ; REL .
@.
@0001:() .
@.
@. -------------------------- Module Initialization ----------------------------
@.
@ BRK RNM -8 DLR,-8 .
@.
@ LDV <WIN1>i6=0 .
@ SUBLRER_ .
@.
@ LDV,p <PRD>h12=SUBLWATCHER . <PRD> contains Product name
@ LDV <OVR>h1=N .
@ LDV <GEN>h1=Y .
@ LDV <PTQ>h1=Y .
@ LDV <PTH>s256 .
@ LDV,pw <DPT>a4=MSTRD$ .
@.
@. ----------------------- Check System & Level Info ---------------------------
@.
@ IF WS$ eq 0,(0180) ; .
@ IF DWCAP$(9-1) ne 1,(0181) ; .
@ IF SYSNAM$(1-1) eq 'M' IF MAPER$(1-2) lt 37,(0181) ; .
@ IF CPRIV$ eq 0,(0182) ; .
@ IF SYSNAM$(1-1) eq 'M' . ; GTO lin+3 .
@ FDR,USRDRW$,DEPN$,,,0183 '' 'USER' ,USER$ .
@ RLN 46-1 <X>h IF <X> ne '',(0183) ; .
@.
@. --------------------------- Initialize Screen -------------------------------
@.
@ LDV <STP>i1=0 .
@ SC q cs .
@ MNU,t MENUBAR,"",,'' .
@ HID .
@ FON,r .
@ IF DWCAP$(12-1) eq 0 . ; GTO lin+2 .
@ FON,r,'Terminal',11,pd .
@ IF DWCAP$(12-1) eq 1 . ; GTO lin+3 .
@ FON,r,'Terminal',11,p,lin+1 GTO lin+2 .
@ FON,r,'MAPPER Standard',11,pd .
@ FON,t .
@ WIN,,01,01,01,01,,h '' <WIN1>i6 CLS,<WIN1> LDV <WIN1>=0 .
@.
@. -------------------------- Display Wizard Screen ----------------------------
@.
@ LDV,p <B>h1=b,<3>h1 IF DWCAP$(13-1) eq 1 LDV <B>h1=3,<3>h1=3 ; .
@ LDV <WID>i3=62,<HGT>i2=30 .
@ IF SCNV$ lt <HGT> . ; GTO lin+5 .
@ MBX,OK,E,'Recommendation' "/\
Please maximize your window to/\
better utilize this installation wizard." \
O,(lin+1) .
@ CHG <ROW>i3 SCNV$ - <HGT> // 2 IF <ROW> lt 2 LDV <ROW>=2 ; .
@ CHG <COL>i3 SCNH$ - <WID> // 2 + 1 .
@ WIN,,<ROW>,<COL>,<HGT>,<WID>,lgra,bc <PRD>' Setup Wizard' <WIN1>i6 .
@ TXT,"",<WIN1>,01,01,05,62,bla/whi,b<3> .
@ FON,t,'Arial',09,pdb .
@ TXT,"",<WIN1>,02,04,01,80,bla/whi <MSG1>i6 .
@ FON,t,'Arial',09,pd .
@ TXT,"",<WIN1>,04,06,01,80,bla/whi <MSG2>i6 .
@ FON,t,'Arial',08,pd .
@ TXT,"SETUP+ Installation Tools",<WIN1>,29,01,02,32,gra/lgra,c .
@ TXT,"(c) John Thalhuber Associates",<WIN1>,30,01,02,32,gra/lgra,c .
@ FON,t,'Arial',08,pdb .
@ BTN,<WIN1>,28,24,02,08 'Read Me' <READ>i6 HID,<READ> .
@ BTN,<WIN1>,28,34,02,08 '< Back' <BACK>i6 .
@ BTN,<WIN1>,28,42,02,08 'Next >' <NEXT>i6 .
@ BTN,<WIN1>,28,52,02,08 'Quit' <EXIT>i6 .
@ TIP," View the README file ",<READ> .
@ TIP," Go back to the previous step ",<BACK> .
@ TIP," Proceed with the installation process ",<NEXT> .
@ TIP," Exit without installing this product ",<EXIT> .
@.
@ BRK,0,A BRK LN+,-0,1,1 .
@ FON,t,'Arial',09,pd .
@ TXT,-0,2,99,<WIN1>,07,06,16,85,bla/lgra <TXTH>i6 .
@ FON,t .
@.
@ IF <*PTH> ne '<*PTH>' LDV,p <PTX>s256=<*PTH> GTO 0024 ; .
@.
@0010:. ------------------------ Welcome Screen --------------------------------
@.
@ LDV <STP>i1=1 .
@.
@ TXT,"",<WIN1>,01,01,25,62,bla/whi,<B> <TXT1>i6 .
@ TXT,"",<WIN1>,01,01,25,20,bla <TXT2>i6 .
@ LDV <PIC1>i6=0 .
@ IF <PTX> ne '<PTX>' IF <PTX> gt ' ' . ; GTO lin+2 .
@ PIC,,,,,<PTX>'\DOCS\IMAGES\SUBLIME.JPG',<WIN1>,05,05,-1,-1 '' <PIC1>i6 .
@ FON,t,'Arial',14,pd .
@ BRK,0,A .
Welcome to the <PRD>
Setup Wizard
@ BRK TXT,-0,2,2,<WIN1>,03,23,02,40,bla/whi <TXT3>i6 .
@ FON,t,'Arial',09,pd .
@ BRK,0,A .
- Seamlessly edit MAPPER files in Sublime Text.
- Modern programming environment compared to MPC.
- Blazing fast file editing that doesn''t get in your way.
- Easily extend, customize, and configure.
_____________________________________________
This wizard will guide you through the steps
required to install <PRD> on your system.
To continue, click Next.
@ BRK TXT,-0,2,99,<WIN1>,08,23,09,62,bla/whi <TXT4>i6 .
@ FON,t .
@.
@ IF <PTH> ne '' SHW,<READ> . ; HID,<READ> .
@ BTN,<BACK>,,,,,,g '< Back' .
@ BTN,<NEXT> 'Next >' .
@ LDV <FOC>i6=<NEXT> .
@0011:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <NEXT>,(0012) ; .
@ IF ACTINP$ eq <READ> PC,bcw "START <PTH>\readme.txt" ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0011 .
@0012:.
@ CLS,<PIC1>,<TXT1>,<TXT2>,<TXT3>,<TXT4> .
@.
@ IF <PTQ> eq 'N',(0030) ; .
@.
@0020:. ------------------- Specify Installation Path --------------------------
@.
@ LDV <STP>i1=2 .
@.
@ LDV,p <PTX>s256=<PTH> IF <PTX> eq '' LDV,p <PTX>s3='D:\' ; .
@ TXT,"Installation Path",<MSG1> .
@ TXT,"Where are you loading the product from?",<MSG2> .
@.
@ BRK,0,A .
You must specify the drive or directory containing
the <PRD> product software ( i.e., D:\ ).
To continue, click Next.
@ BRK TXT,-0,2,99,<TXTH> .
@.
@ TXT,"",<WIN1>,14,08,07,47,lgra,<B> <TXT1>i6 .
@ FON,t,'Arial',08,pd .
@ TXT,"Installation Media Path",<WIN1>,16,11,01,24,bla/lgra <TXT2>i6 .
@ FON,t .
@ EDT,"<PTX>",<WIN1>,17,11,01,41,bla/whi,b<3>h <EDT1>i6 .
@.
@ BTN,<BACK> '< Back' .
@ BTN,<NEXT> 'Next >' .
@ LDV <FOC>i6=<EDT1> .
@0021:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <NEXT>,(0023) ; .
@ IF ACTINP$ eq <EDT1>,(0023) ; .
@ IF ACTINP$ eq <BACK>,(0022) ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0021 .
@0022:.
@ CLS,<TXT1>,<TXT2>,<EDT1> .
@ GTO 0010 .
@0023:.
@ INP,<EDT1>,Y .
@ CHG INPUT$ <PTX>s256 LDV,p <PTX> .
@0024:.
@ SYS .
@ SRH,-0,,,lin+1 '' 'RUNNAME' ,<PRD> GTO 0195 . running?
@ DEF,s <SIZ>i3,<PTX> IF <SIZ> ge 9 . ; GTO lin+2 .
@ IF <PTX>(0-9) eq 'SETUP.RUN' LDV <PTX>(0-9)='' LDV,p <PTX> ; .
@ IF <PTX> ne '' IF <PTX>(0-1) eq '\' LDV <PTX>(0-1)='' LDV,p <PTX> ; .
@ IF <PTX> eq '',(0184) ; .
@ LDV <X>h7='/*?"<>|' DEF,s <N>i3,<X> .
@ LCV,0184 n <PTX> <X>(<N>-1) DEC <N> IF <N> gt 0,(lin-0) ; .
@ DEF,s <SIZ>i3,<PTX> IF <SIZ> gt 1,(lin+2) ; .
@ IF <PTX> ge 'A' & le 'Z' LDV <DRV>h1=<PTX>,<PTX>h2=<DRV>':' ; .
@ PCR,0,A,-0,,,0185 <PTX>'\' RNM -1 .
@ FND,-1,,0185 a 2-11 S,ETUP.INF .
@ PCR,0,A,-0,,,0185 <PTX>'\'SETUP.INF RNM -2 .
@ LN+,-2,1,1 WRL,-2,2 2-1 *,= .
@ SRH,-2,,,0185 dp 2-8 [,DRAWERS] .
@ SRH,-0,,,0185 dp 2-6 ,Drawer <DCNT>i2 .
@ RNM -6 .
@ IF <DRWA> eq '<DRWA>' LDA <DRWA>h1[<DCNT>] LDV <CNT>i2=0 . ; .
@ LOC,-0,4,0185 afm 2-79 Drawer ,<LIN>i4 DEC,2 <LIN> .
@0025:INC <LIN>,<CNT> RDL,-6,<LIN>,0026 1-80 <DAT>s .
@ LCV,0185 '' <DAT> '=' <COL>i2 INC <COL> .
@ LDV,lq <DDRW>h1=<DAT>(<COL>-0),0(,),\
<CPL>i3=<DAT>(<COL>-0),1(,),\
<DNM>s26=<DAT>(<COL>-0),2(,) .
@ LDA <DRWA>[<CNT>]=<DDRW> .
@ PCR,0,F,-0,,,0185 <PTX>'\'<DNM>(p)'\TOC.TXT' .
@ GTO 0025 .
@0026:.
@ BRK,0,A .
.
*
* Run Name .Rpt .I/O .LLP 1MDNF.RDRW.
*============.====.=====.=====.=====.====.
@ SRH,-2,,,0028 dp 2-8 [,RUNS] LDV <LIN>i6=3 .
@0027:INC <LIN> LOC,-0,<LIN>,0028 afm 2-79 RUN ,<LIN> .
@ RDL,-0,<LIN> 1-80 <DAT>s LCV,0185 '' <DAT> '=' <COL>i2 INC <COL> .
@ LDV,lq <RUN>h12=<DAT>(<COL>-0),0(,) .
@ LDV,rq <RPT>i4=<DAT>(<COL>-0),1(,) .
@ LDV,rq <IOS>i5=<DAT>(<COL>-0),2(,) .
@ LDV,rq <LLP>i5=<DAT>(<COL>-0),3(,) .
@ LDV,lq <FLG>h5=<DAT>(<COL>-0),4(,) .
@ LDV,lq <RDRW>h4=<DAT>(<COL>-0),5(,) .
<RUN> <RPT> <IOS> <LLP> <FLG> <RDRW>
@ GTO 0027 .
@0028:.
@ BRK RNM -4 .
@ LDV,p <PTH>s256=<PTX> .
@ BRK,0,A .
.
* E. . .R. .
*ECab d.ERpt.RCab.d.RRpt.
*====.=.====.====.=.====.
@ SRH,-2,,,0129 dp 2-8 [,DATABASE] LDV <LIN>i6=3 .
@0128:INC <LIN> LOC,-0,<LIN>,0129 afm 2-79 Report ,<LIN> .
@ RDL,-0,<LIN>,0129 1-80 <DAT>s LCV,0185 '' <DAT> '=' <COL>i2 INC <COL> .
@ LDV,qr <ECAB>i4=<DAT>(<COL>-0),0(,),\
<EDRW>h1=<DAT>(<COL>-0),1(,),\
<ERPT>i4=<DAT>(<COL>-0),2(,) .
@ LDV,qr <RCAB>i4=<DAT>(<COL>-0),3(,),\
<RDRW>h1=<DAT>(<COL>-0),4(,),\
<RRPT>i4=<DAT>(<COL>-0),5(,) .
<ECAB> <EDRW> <ERPT> <RCAB> <RDRW> <RRPT>
@ GTO 0128 .
@0129:BRK RNM -7 .
@ IF <STP> eq 2,(0029) ; .
@ LDV <PTQ>h1=N .
@ GTO 0010 .
@0029:.
@.
@ CLS,<TXT1>,<TXT2>,<EDT1> .
@.
@0030:. --------------------- Display License Agreement ------------------------
@.
@ LDV <STP>i1=3 .
@.
@ TXT,"Software License Agreement",<MSG1> .
@ TXT,"Do you accept this Software License Agreement?",<MSG2> .
@.
@ BRK,0,A .
IMPORTANT! Please read the following information carefully.
You must check the Accept box to continue; doing so means you
agree to all terms stated in this Software License Agreement.
@ BRK TXT,-0,2,99,<TXTH> .
@.
@ BRK,0,A .
Software License Agreement
--------------------------
Portions copyright © IT Resource Solutions (ITRS)
Permission has been granted by ITRS for use of their software in this package.
Copying or reuse of that software is prohibited without the expressed consent
of ITRS.
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@ BRK RNM -1 .
@.
@ FON,t,'Arial',08,pd .
@ LDV <CLR>h3=whi IF DWCAP$(13-1) eq 1 LDV <CLR>h6=E8E8E8 ; .
@ WIN,<WIN1>,12,06,09,52,<CLR>,c '' <WIN2>i6 .
@ FON,t,'Arial',08,pdb .
@ LST,-1,5,Y,license.txt,<WIN2>,01,01,00,00,dblu/<CLR>,m '' .
@ BTN,<WIN1>,23,50,02,08 'Display' <BTN1>i6 .
@ BTN,<WIN1>,23,06,02,32,bla/lgra,ac(0) \
'Accept Software License Agreement' <CHK1>i6 .
@ FON,t .
@ IF DWCAP$(12-1) eq 1 . ; GTO lin+2 .
@ TIP," Display license agreement text as a result ",<BTN1> .
@.
@ SHW,<READ> .
@ BTN,<BACK> '< Back' .
@ BTN,<NEXT>,,,,,,g 'Next >' .
@ LDV <FOC>i6=<BTN1> .
@0031:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <CHK1>,(0033) ; .
@ IF ACTINP$ eq <NEXT>,(0035) ; .
@ IF ACTINP$ eq <BTN1>,(0034) ; .
@ IF ACTINP$ eq <BACK>,(0032) ; .
@ IF ACTINP$ eq <READ> PC,bcw "START <PTH>\README.MD" ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0031 .
@0032:.
@ CLS,<WIN2>,<CHK1>,<BTN1>,<PIC1> .
@ TXT," ",<MSG1> .
@ TXT," ",<MSG2> .
@ HID,<READ> .
@ IF <PTQ> eq 'Y',(0020) ; GTO 0010 .
@0033:.
@ IF INPUT$ eq 0 . ; GTO lin+3 .
@ BTN,<NEXT>,,,,,,g 'Next >' .
@ LDV <FOC>i6=<CHK1> .
@ IF INPUT$ ne 0 . ; GTO lin+3 .
@ BTN,<NEXT> 'Next >' .
@ LDV <FOC>i6=<NEXT> .
@ GTO 0031 .
@0034:.
@ BRK,0,A .
fkey,01,'' '',KEY
fkey,04,''Return'',KEY
fkey,10,''Quit '',KEY
@ BRK FKY,-0 .
@ SC q CS .
@ HID .
@ DSP,-1 .
@ SC q CS .
@ SHW .
@ FKY .
@ IF FKEY$ eq 10,(0198) ; .
@ GTO 0031 .
@0035:.
@ CLS,<WIN2>,<CHK1>,<BTN1> .
@.
@0040:. ------------------- Run Registration Info ------------------------------
@.
@ LZR,-4 <LNS>i4 IF <LNS> lt 6,(0050) ; .
@ RDL,-4,6 'Run' <RUN>h .
@.
@ LDV <STP>i1=4 .
@.
@ TXT,"Run Registration Parameters",<MSG1> .
@ TXT,"Designate who will be allowed to execute <PRD>",<MSG2> .
@ LDV,pw <USR>h12=USER$,<MST>a4=MSTRD$ .
@ BRK,0,A .
Run script(s) need to be registered. Specify the department and
user(s) to register them for. Use the Master department (<MST>)
to permit access by all users (recommended).
@ BRK TXT,-0,2,99,<TXTH> .
@.
@ TXT,"",<WIN1>,13,15,07,34,lgra,<B> <TXT1>i6 .
@ FON,t,'Arial',08,pd .
@ TXT,"Department",<WIN1>,15,18,01,12,bla/lgra <TXT2>i6 .
@ FON,t .
@ EDT,"<DPT>",<WIN1>,16,19,01,04,bla/whi,b<3>n <EDT1>i6 .
@ FON,t,'Arial',08,pdb .
@ BTN,<WIN1>,15,28,01,20,bla/lgra,ar(1) \
'All Users in Department' <RAD1>i6 .
@ BTN,<WIN1>,17,28,01,20,bla/lgra,ar(0) \
'User '<USR>' Only' <RAD2>i6 .
@ FON,t .
@.
@ BTN,<BACK> '< Back' .
@ BTN,<NEXT> 'Next >' .
@ LDV <FOC>i6=<NEXT> .
@0041:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <NEXT>,(0043) ; .
@ IF ACTINP$ eq <EDT1>,(0043) ; .
@ IF ACTINP$ eq <BACK>,(0042) ; .
@ IF ACTINP$ eq <READ> PC,bcw "START <PTH>\readme.txt" ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0041 .
@0042:.
@ CLS,<TXT1>,<TXT2>,<EDT1>,<RAD1>,<RAD2> .
@ GTO 0030 .
@0043:.
@ INP,<EDT1>,<RAD1> .
@ CHG INPUT$ <DPT>a4,<ALL>i1 LDV,p <DPT> .
@ DEF <N>i1,<DPT> IF <N> ne 1,(0186) ; .
@ LCV,0186 n <DPT> '-' LCV,0186 n <DPT> '+' LCV,0186 n <DPT> '.' .
@ IF <DPT> ge 1 & le 2000 . ; GTO 0186 .
@ LZR,RUNDRW$,<DPT>,0186 .
@ DVS,RUNDRW$,<DPT>,0186 'Run' .
@ FDR,RUNDRW$,<DPT>,,,0044 '' 'Run' ,<RUN> .
@.
@ IF SYSNAM$(1-1) eq 'M' RLN 'TYPE','RID' <DRN>a,<RPT>i ; .
@ IF SYSNAM$(1-1) ne 'M' RLN 'Drawer','Rpt' <DRN>a,<RPT>i ; .
@ DEF <DEF>i1,<DRN> IF <DEF> eq 1,3 . ; GTO 0044 .
@ LDV,p <DRN> .
@ IF <DEF> eq 1 DEF,m <CAB>a4,<DRN> DEF,a <DRW>h1,<DRN> ; .
@ IF <DEF> eq 3 LDV <CAB>a4=<DRN>(2-0),<DRW>h1=<DRN>(1-1) ; .
@ DRW,<CAB>,<DRW>,0044 <CHR>i3 IF <CHR> ne <CPL>,(0044) ; .
@.
@ LDV,p <CAB> .
@ MBX,YN,Q,'Confirmation' "/\
A prior installation was detected.//\
The <RUN> run script is already/\
installed in Cabinet <CAB>, Drawer <DRW>.//\
Do you want to overlay the existing version?" \
N,(0044) .
@ LDV <OVR>h1=Y,<GEN>h1=N .
@ GTO 0045 .
@0044:.
@ LDV <OVR>h1=N,<GEN>h1=Y .
@0045:.
@ CLS,<TXT1>,<TXT2>,<EDT1>,<RAD1>,<RAD2> .
@.
@ IF <OVR> eq 'Y',(0070) ; .
@.
@0050:. -------------------- Specify Empty Drawer ------------------------------
@.
@ LDV <STP>i1=5 .
@.
@ LDV <GEN>h1=Y .
@ LDV <CAB>i4=20,<DRW>h1=B IF SYSNAM$(1-1) eq 'M' LDV <CAB>=2 ; .
@ DEF,q <LGTH>i2,<DRWA> LDV <CNT>i2=0 .
@0051:INC <CNT> IF <CNT> gt <LGTH>,(0052) .
@ LDV <CHKDRW>h1=<DRWA>[<CNT>] .
@ DRW,<CAB>,<CHKDRW>,0051 LDV <CNT>i2=0 .
@ INC,2 <CAB> IF <CAB> le MAXCAB$,(0051) ; GTO 0187 .
@0052:LDV,p <CAB> .
@ TXT,"Drawer Location",<MSG1> .
@ TXT,"Designate drawer to contain <PRD> software.",<MSG2> .
@ BRK,0,A .
Specify an empty cabinet to load the <PRD> package into.
The first available cabinet on your system is: <CAB>.
@ BRK TXT,-0,2,99,<TXTH> .
@.
@ TXT,"",<WIN1>,13,15,07,34,lgra,<B> <TXT1>i6 .
@ FON,t,'Arial',08,pd .
@ TXT,"Cabinet",<WIN1>,15,27,01,12,bla/lgra <TXT2>i6 .
@ TXT,"Drawer",<WIN1>,15,33,01,12,bla/lgra <TXT3>i6 .
@ FON,t .
@ EDT,"<CAB>",<WIN1>,16,27,01,04,bla/whi,b<3>n <EDT1>i6 .
@ LDV <ABC>h1=B LCV '' <ABC> <DRW> <HL>i1 .
@ BRK,0,A LDV <N>i1=1 .
<ABC>(<N>-1)
@ INC <N> IF <N> le 1,(lin-1) ; .
@ BRK .
@ IF DWCAP$(12-1) eq 1 . ; GTO lin+2 .
@ CBX,-0,2,Y,combobox.dat,<WIN1>,16,33,08,01,bla/whi,p,<HL> <EDT2>i6 .
@ IF DWCAP$(12-1) ne 1 . ; GTO lin+2 .
@ EDT,-0,2,8,<WIN1>,16,33,10,02,bla/whi,bad(<HL>) <EDT2>i6 .
@.
@ BTN,<BACK> '< Back' .
@ BTN,<NEXT> 'Next >' .
@ LDV <FOC>i6=<EDT1> .
@0053:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <NEXT>,(0055) ; .
@ IF ACTINP$ eq <EDT1>,(0055) ; .
@ IF ACTINP$ eq <EDT2>,(0055) ; .
@ IF ACTINP$ eq <BACK>,(0054) ; .
@ IF ACTINP$ eq <READ> PC,bcw "START <PTH>\readme.txt" ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0053 .
@0054:.
@ CLS,<TXT1>,<TXT2>,<TXT3>,<EDT1>,<EDT2> .
@ LZR,-4 <LNS>i4 IF <LNS> lt 6,(0030) ; GTO 0040 .
@0055:.
@ INP,<EDT1>,<EDT2> .
@ CHG INPUT$ <CAB>a4,<DRW>h1 LDV,p <CAB> LDV,u <DRW> .
@ DEF <N>i1,<CAB> IF <N> ne 1,(0188) ; .
@ LCV,0188 n <CAB> '-' LCV,0188 n <CAB> '+' LCV,0188 n <CAB> '.' .
@ LDV,r <CAX>a4=<CAB> IF <CAX>(0-1) eq 1,3,5,7,9,(0188) ; .
@ IF SYSNAM$(1-1) eq 'M' . ; IF <CAB> ge 16 & le MAXCAB$ . ; GTO 0189 .
@ IF SYSNAM$(1-1) ne 'M' . ; IF <CAB> ge 2 & le MAXCAB$ . ; GTO 0190 .
@ IF SYSNAM$(1-1) ne 'M' . ; IF <CAB> ge 200 & le 250,(0191) ; .
@ IF <DRW> ge 'B' & le 'I' . ; GTO 0192 .
@ IF SYSNAM$(1-1) ne 'M' DRW,<CAB>,<DRW>,0057 <CHR>i3 ; .
@ IF SYSNAM$(1-1) eq 'M' DRW,<CAB>,<DRW>,0057 <CHR>i3,<CS>i1 ; .
@ IF <CHR> ne <CPL>,(0191) ; .
@ IF SYSNAM$(1-1) eq 'M' IF <CS> ne 1,(0192) ; .
@ IF STAT1$ eq 0,(0056) ; .
@.
@ MBX,YN,Q,'Confirmation' "/\
The drawer you specified already exists.//\
Are you sure you want to overlay the existing/\
reports in Cabinet <CAB> Drawer <DRW>?" \
N,(0053) .
@0056:.
@ LDV <GEN>h1=N .
@0057:.
@ CLS,<TXT1>,<TXT2>,<TXT3>,<EDT1>,<EDT2> .
@.
@ IF SYSNAM$(1-1) eq 'M' IF <GEN> eq 'Y',(0060) ; GTO 0070 .
@.
@0060:. ----------------------- Database File (2200) ---------------------------
@.
@ LDV <STP>i1=6 .
@.
@ LDV,pw <MXF>i4=MAXFIL$ .
@ TXT,"Drawer Generation",<MSG1> .
@ TXT,"Designate Database File",<MSG2> .
@ BRK,0,A .
Specify the MAPERn database file for the new drawer.
Available files are 3-<MXF>.
@ BRK TXT,-0,2,99,<TXTH> .
@.
@ TXT,"",<WIN1>,13,15,07,34,lgra,<B> <TXT1>i6 .
@ FON,t,'Arial',08,pd .
@ TXT,"Database File",<WIN1>,15,28,01,16,bla/lgra <TXT2>i6 .
@ FON,t .
@ EDT,"3",<WIN1>,16,30,01,04,bla/whi,b<3>n <EDT1>i6 .
@.
@ BTN,<BACK> '< Back' .
@ BTN,<NEXT> 'Next >' .
@ LDV <FOC>i6=<EDT1> .
@0061:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <NEXT>,(0063) ; .
@ IF ACTINP$ eq <EDT1>,(0063) ; .
@ IF ACTINP$ eq <BACK>,(0062) ; .
@ IF ACTINP$ eq <READ> PC,bcw "START <PTH>\readme.txt" ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0061 .
@0062:.
@ CLS,<TXT1>,<TXT2>,<EDT1> .
@ GTO 0050 .
@0063:.
@ INP,<EDT1>,Y .
@ CHG INPUT$ <FIL>i4 .
@ DEF <N>i1,<FIL> IF <N> ne 1,(0193) ; .
@ LCV,0193 n <FIL> '-' LCV,0193 n <FIL> '+' LCV,0193 n <FIL> '.' .
@ IF <FIL> ge 3 & le MAXFIL$ . ; GTO 0193 .
@.
@ CLS,<TXT1>,<TXT2>,<EDT1> .
@.
@0070:. ---------------------- Final Verification ------------------------------
@.
@ LDV <STP>i1=7 .
@.
@ TXT,"Installation Confirmation",<MSG1> .
@ TXT,"Is this information correct?",<MSG2> .
@.
@ BRK,0,A .
Examine the following installation information carefully.
Click Back if you need to modify options or selections.
If correct, click Install to perform the installation.
[Destination]
@ IF <GEN> eq 'N' . ; GTO 0071 .
@ SRH,-2,,,0185 dp 2-8 [,DRAWERS] <DCNT>i2 .
@ SRH,-0,,,0185 dp 2-6 ,Drawer <DCNT>i2 .
@ LOC,-0,4,0185 afm 2-79 Drawer ,<LIN>i4 DEC,2 <LIN> .
@ INC <LIN>,<CNT> RDL,-0,<LIN>,0073 1-80 <DAT>s .
@ LCV,0185 '' <DAT> '=' <COL>i2 INC <COL> .
@ LDV,lq <DDRW>h1=<DAT>(<COL>-0),0(,) .
Drawer <DDRW><CAB> - Existing drawer will be overwritten
@ GTO lin-4 .
@0071:IF <GEN> eq 'Y' . ; GTO 0072 .
@ SRH,-2,,,0185 dp 2-8 [,DRAWERS] .
@ SRH,-0,,,0185 dp 2-6 ,Drawer <DCNT>i2 .
@ LOC,-0,4,0185 afm 2-79 Drawer ,<LIN>i4 DEC,2 <LIN> .
@ INC <LIN>,<CNT> RDL,-0,<LIN>,0073 1-80 <DAT>s .
@ LCV,0185 '' <DAT> '=' <COL>i2 INC <COL> .
@ LDV,lq <DDRW>h1=<DAT>(<COL>-0),0(,) .
Drawer <DDRW><CAB> - New drawer will be generated
@ GTO lin-4 .
@0072:IF <GEN> eq 'Y' IF SYSNAM$(1-1) eq 'M' . ; GTO 0073 .
Database file <FIL> will be used
@0073:LZR,-4 <LNS>i4 IF <LNS> lt 6,(0074) ; .
[Run Registration]
@ LDV,w <USR>h12=USER$ IF <ALL> eq 1 LDV <USR>=All ; .
Department: <DPT> User(s): <USR>
@0074:BRK TXT,-0,2,99,<TXTH> .
@.
@ BTN,<BACK> '< Back' .
@ BTN,<NEXT> 'Install' .
@ LDV <FOC>i6=<NEXT> .
@0075:.
@ INP,<FOC>,,<WIN1> .
@ IF ACTINP$ eq <NEXT>,(0077) ; .
@ IF ACTINP$ eq <BACK>,(0076) ; .
@ IF ACTINP$ eq <READ> PC,bcw "START <PTH>\readme.txt" ; .
@ IF ACTINP$ eq <EXIT>,(0198) ; .
@ GTO 0075 .
@0076:.
@ IF SYSNAM$(1-1) eq 'M' IF <GEN> eq 'Y',(0060) ; .
@ IF <OVR> eq 'N',(0050) ; .
@ LZR,-4 <LNS>i4 IF <LNS> lt 6,(0030) ; GTO 0040 .
@0077:.
@ CLS,<READ>,<BACK>,<NEXT>,<EXIT> .
@ LDV <STP>i1=0 .
@.
@0080:. ------------------------ Drawer Setup ----------------------------------
@.
@. Get List of Drawers
@.
@ LZR,-6 ,,<DLIN>i4 .
@0081:INC <DLIN> .
@ RDL,-6,<DLIN>,0098 1-80 <DAT>s LCV,0185 '' <DAT> '=' <COL>i2 INC <COL> .
@ LDV,lq <DRW>h1=<DAT>(<COL>-0),0(,),\
<CPL>i3=<DAT>(<COL>-0),1(,),\
<DNM>s26=<DAT>(<COL>-0),2(,) .
@.
@ IF <GEN> eq 'N',(0082) ; .
@.
@. Generate Drawer
@.
@ TXT,"Drawer Generation",<MSG1> .
@ TXT,"... Please Wait ...",<MSG2> .
@ BRK,0,A .
Drawer <DRW><CAB> is now being generated ...
@ BRK TXT,-0,2,99,<TXTH>,,,,,,s .
@.
@ WAT 1000 .
@.
@ IF SYSNAM$(1-1) eq 'M' . ; GTO lin+2 .
@ GEN,<CAB>,<DRW> <FIL>,<CPL>,F,,,,<TTL>(1-24),USER$ .
@ IF SYSNAM$(1-1) ne 'M' . ; GTO lin+2 .
@ GEN,<CAB>,<DRW>,<CPL> .
@.
@0082:. Update Drawer Permission Report
@.
@ TXT,"Drawer Registration",<MSG1> .
@ TXT,"... Please Wait ...",<MSG2> .
@ BRK,0,A .
Updating Drawer Permissions report ...
@ BRK TXT,-0,2,99,<TXTH>,,,,,,s .
@.
@ WAT 1000 .
@.
@ IF 0 eq SECDRW$,SECRPT$,SECGRP$,(0084) ; .
@ DFU SECDRW$,SECRPT$ .
@ LDV <LIN>i6=5 .
@ INC <LIN> RDL,SECDRW$,SECRPT$,<LIN>,0083 1-1,29-9 <LT>h,<DC>a .
@ IF <LT> ne ,(lin-1) ; .
@ LDV,l <DC> IF <DC>(2-0) eq <CAB> IF <DC>(1-1) eq <DRW> . ; GTO lin-2 .
@ LN-,SECDRW$,SECRPT$,<LIN>,1 .
@0083:.
@ LDV,r <DRC>h6=<DRW><CAB> .
@ IF SYSNAM$(1-1) eq 'M' \
LDV,rz <ZCB>a4=<CAB> LDV <DRC>h6=<DRW>' '<ZCB> ; .
@ LDV <SOR>i1=0 .
@ BFN,SECDRW$,SECRPT$,,lin+1 k 2-26 ,k LDV <SOR>=1 GTO lin+2 .
@ BFN,SECDRW$,SECRPT$,,lin+1 kf'2,1' 34-4,32-1 ,k,k LDV <SOR>=2 .
@ FDR,SECDRW$,SECRPT$ '' 2-1 *,= ,<LIN>i6 .
@ LN+,SECDRW$,SECRPT$,<LIN>,1 INC <LIN> .
@ CHG <CLM>i3 56 + SECGRP$ .
@ WRL,SECDRW$,SECRPT$,<LIN> 2-26,32-6,<CLM>-1 ,<DNM>,<DRC>,W .
@ WRL,SECDRW$,SECRPT$,<LIN> 28-1,38-1,56-1 , , , .
@ IF <SOR> eq 1 SRR,SECDRW$,SECRPT$ '' 2-26,29-9 ,1,2 ; .
@ IF <SOR> eq 2 SRR,SECDRW$,SECRPT$ '' 34-4,32-1 ,2n,1 ; .
@ CMU .
@.
@0084:. Update Drawer Description
@.
@ TXT,"Drawer Description",<MSG1> .
@ TXT,"... Please Wait ...",<MSG2> .
@ BRK,0,A .
Updating Cabinet Table of Contents report ...
@ BRK TXT,-0,2,99,<TXTH>,,,,,,s .
@.
@ WAT 1000 .
@.
@ LDV <ROW>i1=1,<COL>i2=4 .
@ IF SYSNAM$(1-1) ne 'M' IF <DRW> eq 'F','G','H','I' LDV <COL>=39 ; .
@ IF SYSNAM$(1-1) eq 'M' IF <DRW> eq 'F','G','H','I' LDV <COL>=38 ; .
@ IF <DRW> eq 'C','G' LDV <ROW>=2 ; .
@ IF <DRW> eq 'D','H' LDV <ROW>=3 ; .
@ IF <DRW> eq 'E','I' LDV <ROW>=4 ; .
@ IF SYSNAM$(1-1) ne 'M' CHG <LIN>i6 <CAB> // 2 * 6 + 18 + <ROW> ; .
@ IF SYSNAM$(1-1) eq 'M' CHG <LIN>i6 <CAB> // 2 * 15 + 21 + <ROW> ; .
@ LOK,TYPDRW$,TYPRD$ .
@ LDV <SIZ>i2=26 IF SYSNAM$(1-1) eq 'M' LDV <SIZ>=24 ; .
@ WRL,TYPDRW$,TYPRD$,<LIN> <COL>-<SIZ> ' ',<DNM>(1-<SIZ>) .
@ ULK .
@.
@0090:. ---------------------- Load Runs & Data --------------------------------
@.
@ PCR,0,F,-0,,,0185 <PTX>'\'<DNM>(p)'\TOC.TXT' RNM -3 .
@ TOT,-3 '' 'Lines' ' ',+ <TLN>i12 .
@.
@ TXT,"Software Modules",<MSG1> .
@ TXT,"... Please Wait ...",<MSG2> .
@ BRK,0,A .
Loading <PRD> code modules, tables and other reports ...
@ BRK TXT,-0,2,99,<TXTH>,,,,,,s .
@.
@ TXT,"",<WIN1>,15,13,08,37,lgra,<B> <TXT1>i6 .
@ FON,t,'Arial',08,pd .
@ TXT,"Completion Status",<WIN1>,14,14,01,18,bla/lgra,c <TXT2>i6 .
@ TXT,"",<WIN1>,21,24,01,24,bla/lgra,c <TXT3>i6 .
@ FON,t .
@ TXT,"",<WIN1>,17,19,03,25,whi,<B> <TXT4>i6 .
@ TXT,"",<WIN1>,17,19,03,25,whi,<B> <TXT5>i6 .
@ TXT,"",<WIN1>,18,29,01,05,dblu/whi,cs <TXT6>i6 .
@ JUV,r <CAB> .
@.
@ LDV <XLN>i12=0,<QTY>a4=0 .
@ LZR,-3 ,,<RLIN>i4 .
@0091:INC <RLIN> RDL,-3,<RLIN>,0097 'Cab','Dw','Rpt','Lines','Typ','Name',\
'Title' <TCAB>i,<TDRW>h,<RPT>a,<RLN>i,<EXT>h,<SVCNME>s,<TTL>s .
@.
@ INC <QTY> INC,<RLN> <XLN> JUV,r <RPT> LDV,l <RID>h5=<RPT><DRW> .
@ TXT,"Loading Report: <RID>",<TXT3> .
@ LDV,pu <REPORT>s20=<RPT>(p)<TDRW><TCAB>(p)'.'<EXT> .
@ LDV <BIN>h1=N .
@ IF <EXT> eq 'BMP','PCX','JPG','BIN','EXE','PNG' LDV <BIN>h1=Y ; .
@ IF <BIN> eq Y LDV,p <REPORT>s79=<TTL> .
@.
@. # Database rids
@ FDR,-7,,,0092 '' 'Ecab','Ed','Erpt' ,<TCAB>,<TDRW>,<RPT> .
@ RLN 'RCab','Rd','RRpt' <RCAB>i,<RDRW>h,<RRPT>a .
@ LZR,<TCAB>,<TDRW>,<RPT>,0092 ,<TCC>i3,<THLN>i3 DEC <THLN> .
@ PCR,<CAB>,<DRW>,-0,<BIN> <PTH>'\'<DNM>(p)'\'<SVCNME>(p)<REPORT> .
@ RNM -8 LZR,-8 ,<CC>i3,<HLN>i3 DEC <HLN> .
@ BRK,0,I RDC,-8,2,<HLN> 1-<CC> <HDGS>s .
<HDGS>
@ BRK RNM -8 .
@ BRK,0,I RDC,<TCAB>,<TDRW>,<RPT>,2,<HLN> 1-<TCC> <HDGS>s .
<HDGS>
@ BRK .
@ DIF,-0,-8 ' ' .
@ LZR,-0 <LNS>i7,,<HLN>i3 LDV <DIF>h1=N IF <LNS> eq <HLN>,(0092) .
@ INC,4 <HLN> LOC,-0,<HLN> afm 2-79 DATE ,<LIN>I4 INC <LIN> .
@ LOC,-0,<LIN>,lin+1 afm 2-2 '>+' LDV <DIF>=Y .
@ LOC,-0,<LIN>,lin+1 afm 2-2 '<-' LDV <DIF>=Y .
@.
@. # Replace headings if new
@ IF <DIF> eq Y . ; GTO 0092 .
@ LOK,<TCAB>,<TDRW>,<RPT> .
@ ADD,<TCAB>,<TDRW>,<RPT>,-8 .
@ REP,<TCAB>,<TDRW>,<RPT> .
@ ULK .
@.
@0092:PCR,<CAB>,<DRW>,<RPT>,<BIN> <PTH>'\'<DNM>(p)'\'<SVCNME>(p)<REPORT> .
@.
@. # Handle character replacement
@ IF <RPT> eq 0,(0093) .
@ IF <BIN> eq y,(0093) .
@ RSL,<CAB>,<DRW>,<RPT> .
@ CHG <NS>h1 CHR$254 LZR,-0 ,<CC>i4 .
@ CHG <NS1>h1 CHR$302 .
@ LDV <CHAR>h0 .
@ LCH,-0,,lin+1 'af' 1-<CC> <NS1><NS>/TAB$ .
@ LCH,-0,,lin+1 'af' 1-<CC> <NS1>/'' .
@ LCH,-0,,lin+1 'af' 1-<CC> <NS>/TAB$ .
@ REP,<CAB>,<DRW>,<RPT> .
@.
@0093:CHG <PC>i4 <XLN> / <TLN> * 100 CHG <WID>i4 <PC> * 25 / 100 .
@ IF <WID> gt 0 TXT,"",<TXT5>,17,19,03,<WID>,dblu ; .
@ LDV,p <PC> TXT,"<PC>%",<TXT6>,,,,,,s .
@ IF <RPT> eq 0,(0094) ; .
@ LOK,<CAB>,<DRW>,<RPT> WRL,<CAB>,<DRW>,<RPT>,2 2-79 .,<TTL> ULK .
@ GTO 0091 .
@0094:.
@ RNM -5 .
@ DRW,<CAB>,<DRW> <CPL>i3 .
@ LOK,<CAB>,<DRW>,0 .
@ LDV <ZLN>i6=1 .
@0095:INC <ZLN> RDL,-5,<ZLN>,0096 1-<CPL> <DAT>s .
@ CHG <WID>i3 <CPL> - 1 .
@ IF <DAT>(1-1) eq '.' IF <WID> gt 79 LDV <WID>=79 ; .
@ WRZ,<CAB>,<DRW>,<ZLN> 2-<WID> <DAT>(1-1),<DAT>(2-<WID>) .
@ GTO 0095 .
@0096:.
@ ULK .
@ GTO 0091 .
@0097:.
@ GTO 0081 . Get next drawer and runs
@0098:CLS,<TXT1>,<TXT2>,<TXT3>,<TXT4>,<TXT5>,<TXT6> .
@.
@0099:. -------------------- Update Run Registration ---------------------------
@.
@ TXT,"Run Script Registration",<MSG1> .
@ TXT,"... Please Wait ...",<MSG2> .
@ BRK,0,A .
Registering run script(s) in Department <DPT> ...
@ BRK TXT,-0,2,99,<TXTH>,,,,,,s .
@.
@ WAT 1000 .
@.
@ DFU RUNDRW$,<DPT> .
@ LDV <SOR>h1=N BFN,RUNDRW$,<DPT>,,lin+1 k 'RUN' ,k LDV <SOR>=Y .
@ MAU,-4,RUNDRW$,<DPT>,0101 dm 'Run' ,1 'Run' ,1 .
@ DEL .
@0101:.
@ IF SYSNAM$(1-1) ne 'M',(0102) ; .
@ DVS,RUNDRW$,<DPT> \
'RUN','USER','TYPE','RID','F','I/O','LINE','MODE','1MDNF' \
<RUN>h,<USR>h,<DRN>a,<RPT>i,<F>h,<IOS>a,<LLP>a,<CBS>s,<FLG>h .
@ GTO 0103 .
@0102:.
@ DVS,RUNDRW$,<DPT> \
'Run','User','Drawer','Rpt','F','I/O','Line','Cab','1MDNF' \
<RUN>h,<USR>h,<DRN>a,<RPT>i,<F>h,<IOS>a,<LLP>a,<CBS>s,<FLG>h .
@0103:.
@ LDV,lw <USR>=USER$ IF <ALL> eq 1 LDV <USR>='' ; .
@ LDV <F>=Y,<CBS>=ALL .
@ LZR,-4 <LNQ>i3 DEC,5 <LNQ> .
@ LZR,RUNDRW$,<DPT> ,,<LIN>i6 .
@ LN+,RUNDRW$,<DPT>,<LIN>,<LNQ> .
@ LDV <RLN>i4=5 .
@0104:INC <RLN>,<LIN> .
@ RDL,-4,<RLN>,0106 'Run','Rpt','I/O','LLP','1MDNF','RDRW' \
<RUN>,<RPT>,<IOS>,<LLP>,<FLG>,<RDRW> .
@ LDV,p <RDRW> .
@ IF SYSNAM$(1-1) ne 'M',(0105) ; .
@ LDV <DRC>a6=<CAB><RDRW> DEF,n <DRN>,<DRC> .
@ WRL,RUNDRW$,<DPT>,<LIN> \
'RUN','USER','TYPE','RID','F','I/O','LINE','MODE','1MDNF','VAR','LAB' \
,<RUN>,<USR>,<DRN>,<RPT>,<F>,<IOS>,<LLP>,<CBS>,<FLG>,499,499 .
@ GTO 0104 .
@0105:.
@ LDV,r <DRN>(0-5)=<RDRW><CAB> .
@ WRL,RUNDRW$,<DPT>,<LIN> \
'Run','User','Drawer','Rpt','F','I/O','Line','Cab','1MDNF','VAR','LAB' \
,<RUN>,<USR>,<DRN>,<RPT>,<F>,<IOS>,<LLP>,<CBS>,<FLG>,499,499 .
@ GTO 0104 .
@0106:.
@ IF <SOR> eq Y SRR,RUNDRW$,<DPT> '' 'RUN','USER' ,1,2d ; .
@ CMU .
@ GTO 0150 .
@.
@0150:. ------------------------- Install Complete -----------------------------
@.
@. #=== Build DEF Table =================================================
@ call,"BLD-DEFTABLE" 0001 (<CAB>,' ','1','XALL','ALL') .
@.
@ LDV <STP>i1=8 .
@.
@ TXT,"Installation Complete",<MSG1> .
@ TXT,"Press Finish to display Installation Notes",<MSG2> .
@ BRK,0,A .
<PRD> successfully loaded into Cabinet <CAB>.
@ LZR,-4 <LNS>i4 IF <LNS> lt 6,(lin+2) ; .
Run script(s) were registered in Department <DPT>.
@ BRK TXT,-0,2,99,<TXTH>,,,,,,s .
@.
@ FON,t,'Courier New',08,pd .
@ BRK,0,A .
@ LDV <CLR>h3=whi IF DWCAP$(13-1) eq 1 LDV <CLR>h6=E8E8E8 ; .
@ BRK .
@ FON,t .
@.
@ FON,t,'Arial',08,pdb .
@ BTN,<WIN1>,28,52,02,08 'Finish' <EXIT>i6 .
@ FON,t .
@ INP,<EXIT> .
@0151:.
@ CLS,<WIN1> LDV <WIN1>=0 .
@ FON,r FON,t .
@ WIN,,01,01,01,01,,h '' <WIN1>i6 CLS,<WIN1> LDV <WIN1>=0 .
@.
@ BRK,0,A .
.Installation Notes
*===============================================================================
<PRD> has been successfully installed in Cabinet <CAB>.
Please sign off as MAPCOORD and sign on as yourself.
You can then open up a report in Sublime by typing SUBL on the control line.
Additional instructions and documentation can be found here:
https://github.com/bis-mapper/sublwatcher
@ LDV <RUN>h12 RDL,-4,6,0152 'Run' <RUN> .
@.
@ IF <DPT> ne MSTRD$,(lin+2) ; .
The following runs have been globally registered for all users:
@ IF <DPT> eq MSTRD$,(lin+2) ; .
The following runs have been registered for all users in department <DPT>:
Run Name
--------
@ RDC,-4,6 'Run' <V1>h .
<V1>
@0152:.
@ BRK RNM -8 .
@.
@ IF <RUN> eq '',(lin+3) ; .
@ IF <DPT> eq MSTRD$ . ; IF <DPT> eq DEPN$ . ; GTO lin+2 .
fkey,01,''Quit '',KEY
@ BRK FKY,-0 .
@ DSP,-8 .
@ FKY .
@ IF <RUN> eq '',(0199) ; .
@ IF FKEY$ eq 1,(0199) ; .
@. BRK DLR,-0 .
@. SC q prep .
@. IF <DPT> eq MSTRD$ RUN <RUN> . ; IF <DPT> eq DEPN$ RUN <RUN> . ; .
@. CLS,<WIN1> LDV <WIN1>=0 .
@ GTO 0199 .
@.
@. --------------------------------- Errors ------------------------------------
@.
@0180:.
@ SC '' \
CS;MSG,1,e,,TIC$'<Installation requires a Graphical Workstation>'TIC$ .
@ REL .
@0181:.
@ MBX,OK,s,'Restriction' "/\
Your Graphical Workstation or BIS level does not support SBS" \
O,(0199) .
@0182:.
@ MBX,OK,S,'Insufficient Privileges' "/\
You must have coordinator privileges to perform this installation." \
O,(0199) .
@0183:.
@ MBX,OK,S,'Insufficient Privileges' "/\
Your user-id is not permitted to generate a new drawer." \
O,(0199) .
@0184:.
@ IF <STP> eq 0,(0010) ; .
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Entry' "/\
Path name contains invalid characters." \
O,(0021) .
@0185:.
@ IF <STP> eq 0,(0010) ; .
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Installation File(s)' "/\
Installation file(s) not found in the path specified or are corrupt.//\
Please verify the path name." \
O,(0021) .
@0186:.
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Entry' "/\
Invalid run registration department number." \
O,(0041) .
@0187:.
@ MBX,OK,S,'Insufficient Database Space' "/\
No empty drawers available this system." \
O,(0199) .
@0188:.
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Entry' "/\
You must specify an even-numbered cabinet." \
O,(0053) .
@0189:.
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Entry' "/\
Cabinet must be 16 through MAXCAB$." \
O,(0053) .
@0190:.
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Entry' "/\
Cabinet must be 2 through MAXCAB$." \
O,(0053) .
@0191:.
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'System Restriction' "/\
Cabinets 200 through 250 are reserved and may not be used." \
O,(0053) .
@0192:.
@ LDV <FOC>=<EDT2> .
@ MBX,OK,S,'Invalid Entry' "/\
Invalid Drawer letter." \
O,(0053) .
@0193:.
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Entry' "/\
Database file number must be 3 through 'MAXFIL$" \
O,(0061) .
@0194:.
@ IF <STP> eq 0,(0010) ; .
@ LDV <FOC>=<EDT1> .
@ MBX,OK,S,'Invalid Installation File(s)' "/\
Run drawer was not specified in SETUP.INF file.//\
Please specify and try again." \
O,(0021) .
@0195:.
@ MBX,OK,S,<PRD>' is already running' "/\
Please close all current instances of <PRD>." \
O,(0199) .
@.
@. ------------------------------- Termination ---------------------------------
@.
@0196:. Abort
@.
@ IF SYSNAM$(1-1) ne 'M' CHG <ERR>i4 CERR$ ; .
@ IF SYSNAM$(1-1) eq 'M' SC x EEL';'rsm ; .
@ RAR 0196 .
@.
@0198:. Quit
@.
@ IF <STP> ge 1 & le 7 . ; GTO lin+4 .
@ MBX,YN,Q,'Confirmation' "/\
Are you sure you want to abandon this installation?" \
N,(lin+1),Y,(0199) .
@ IF <STP> eq 1,(0011) ; .
@ IF <STP> eq 2,(0021) ; .
@ IF <STP> eq 3,(0031) ; .
@ IF <STP> eq 4,(0041) ; .
@ IF <STP> eq 5,(0053) ; .
@ IF <STP> eq 6,(0061) ; .
@ IF <STP> eq 7,(0075) ; .
@ IF <STP> eq 8,(0151) ; .
@ GTO 0199 .
@.
@0199:. Exit
@.
@ CLS,<WIN1> .
@ IF DRW8$ ne 0 LZR,-8,lin+1 DSX,-8 ; .