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
|
'***********************************************************************
'* RPC SDK Install
'* Copyright (C) - 1992 by Microsoft
'*
'* Written By - Steven Zeck
'**************************************************************************
'$define DEBUG
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
CONST TRUE = -1
CONST FALSE = 0
''Dialog ID's
CONST ASKQUIT = 200
CONST DlgGetPath = 310
CONST HlpGetPath = 311
CONST DlgRegPath = 1700
CONST HlpRegPath = 1701
CONST DlgDosPath = 2000
CONST HlpDosPath = 2001
CONST EXITFAILURE = 400
CONST EXITQUIT = 600
' Conditionaly set the dialogs for full SDK versus runtime only.
CONST DlgWelcome = 100
CONST DlgInstallOptions = 800
CONST HlpInstallOptions = 801
CONST DlgNSInstallOptions = 802
CONST HlpNSInstallOptions = 803
CONST EXITSUCCESS = 700
CONST DlgSdkOption = 1200
CONST HlpSdkOption = 1201
CONST DlgRuntimeOption = 1400
CONST HlpRuntimeOption = 1401
CONST DlgTransport = 1600
CONST HlpTransport = 1601
CONST DlgNetBiosOptions = 2200
CONST HlpNetBiosOptions = 2201
CONST DlgNetBiosProtocols = 2300
CONST HlpNetBiosProtocols = 2301
CONST DlgNewProtocol = 2100
CONST HlpNewProtocol = 2101
CONST DlgNewNS = 2150
CONST DlgAutoPath = 2400
CONST HlpAutoPath = 2401
CONST BADPATH = 6400
CONST DlgDosSdkPath = 3000
CONST DlgDosSdkPathHelp = 3001
CONST DlgMacSdkPath = 3100
CONST DlgMacSdkPathHelp = 3101
CONST DlgWinSdkPath = 3200
CONST DlgWinSdkPathHelp = 3201
''Bitmap ID
CONST LOGO = 1
CONST LanType_LANMAN = 6
Type LAN_DETECT
iType As Integer
iMajor As Integer
iMinor As Integer
iRev As Integer
fEnhance As Integer
End Type
GLOBAL BasePath$ ''Default destination directory.
GLOBAL WinIncPath$
GLOBAL WinLibPath$
GLOBAL BaseWPath$ ''Default destination directory.
GLOBAL DosIncPath$
Global DosLibPath$
Global DosExePath$
GLOBAL Base2Path$ ''Default destination directory.
Global MacIncPath$
Global MacLibPath$
GLOBAL RegPath$ ''Default destination directory.
GLOBAL DosPath$ ''Default destination directory.
Global CustomInstall ''Custom install option
Global SrcDir$
Global MSDOSSDK
Global MSDOSIncSDK
Global MSDOSLibSDK
Global WindowsSDK
Global WindowsIncSDK
Global WindowsLibSDK
Global MacSDK
Global MacIncSDK
Global MacLibSDK
GLOBAL CUIDLL$
GLOBAL HELPPROC$
Global ThreeEightySixEnh
Global ThreeEightySixEnhStr$
Global TCP
DECLARE Function GetPath(Dialog%, Path$) AS INTEGER
DECLARE Function GetDosPath() AS INTEGER
DECLARE Function GetWinPath() AS INTEGER
DECLARE Function GetMacPath() AS INTEGER
DECLARE Sub CopyList(ListIn$, ListOut$, Truncate%)
DECLARE FUNCTION MakePath (szDir$, szFile$) AS STRING
DECLARE FUNCTION GetCheck (index%) AS INTEGER
DECLARE FUNCTION GetInnerChk (index%) AS INTEGER
DECLARE FUNCTION BoolToOnOff (Bool%) AS String
DECLARE FUNCTION GetWinSize () AS String
DECLARE FUNCTION GetDosSize () AS String
DECLARE FUNCTION GetMacSize () AS String
DECLARE FUNCTION FormatSize ()AS String
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Startup Entry point
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INIT:
CUIDLL$ = "mscuistf.dll" ''Custom user interface dll
HELPPROC$ = "FHelpDlgProc" ''Help dialog procedure
SetBitmap CUIDLL$, LOGO
SetTitle "RPC - Software Development Kit Install"
szInf$ = GetSymbolValue("STF_SRCINFPATH")
if szInf$ = "" THEN
szInf$ = GetSymbolValue("STF_CWDDIR") + "RPCSDK.INF"
end if
ReadInfFile szInf$
SetAbout "RPC SDK Install", "By GregJen - Version 0.20"
CustomInstall = FALSE
MSDOSRuntime = TRUE
ThreeEightySixEnh = FALSE
TCP = FALSE
ThreeEightySixEnhStr$="[386Enh]"
'$ifndef WINDOWS_ONLY
MSDOSSDK = TRUE
'$endif
'$ifndef MSDOS_ONLY
WindowsRuntime = TRUE
'$endif
MSDOSIncSDK = TRUE
MSDOSLibSDK = TRUE
WindowsSDK = TRUE
WindowsIncSDK = TRUE
WindowsLibSDK = TRUE
MacSDK = TRUE
MacIncSDK = TRUE
MacLibSDK = TRUE
Dim Detect As LAN_DETECT
BasePath$ = "C:\msvc"
BaseWPath$ = "C:\msvc"
Base2Path$ = "C:\msvc20\m68k"
RegPath$="C:\"
DosPath$="C:\DOS"
WinPath$=GetWindowsDir
SrcDir$ = GetSymbolValue("STF_SRCDIR")
' If the path contains lanman, make that the default DOS DLL directory.
path$ = Ucase$(GetEnvVariableValue ("PATH"))+";"
i% = 1
while i% < len(path$)
iEnd = instr(i%, path$, ";")
cPath$ = mid$(path, i%, iEnd - i%)
if instr (cPath$, "LANMAN") or instr(cPath$, "\NETPROG") then
DosPath$ = cPath$
end if
if instr (cPath$, "\msvc\") then
BasePath$ = mid$(cPath$, 1, 1)+":\msvc"
end if
if instr (cPath$, "\msvc20\") then
Base2Path$ = mid$(cPath$, 1, 1)+":\msvc20\m68k"
end if
i% = iEnd + 1
wend
BaseWPath$ = BasePath$
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Welcome dialog box
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
WELCOME:
sz$ = UIStartDlg(CUIDLL$, DlgWelcome, "FInfoDlgProc", 0, "")
if sz$ = "CONTINUE" THEN
UIPop 1
else
GOSUB ASKQUIT
GOTO WELCOME
end if
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' sdk custom install dialog box
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
SDK_OPTION:
RemoveSymbol "CheckItemsState"
AddListItem "CheckItemsState", BoolToOnOff(MSDOSSDK)
AddListItem "CheckItemsState", BoolToOnOff(WindowsSDK )
AddListItem "CheckItemsState", BoolToOnOff(MacSDK )
RemoveSymbol "DriveStatusText"
AddListItem "DriveStatusText", BasePath$
'AddListItem "EditFocus", "END"
AddListItem "DriveStatusText", BaseWPath$
'AddListItem "EditFocus", "END"
AddListItem "DriveStatusText", Base2Path$
'AddListItem "EditFocus", "END"
RESTART_SDK_OPTION:
RemoveSymbol "StatusItemsText"
CurSize$ = GetDosSize()
TotalSize = val(CurSize$)
AddListItem "StatusItemsText", CurSize$
CurSize$ = GetWinSize()
TotalSize = TotalSize + val(CurSize$)
AddListItem "StatusItemsText", CurSize$
CurSize $= GetMacSize()
TotalSize = TotalSize + val(CurSize$)
AddListItem "StatusItemsText", CurSize$
TotalSizeStr$ = "Total ="+str$( TotalSize )+"K"
AddListItem "StatusItemsText", TotalSizeStr$
RE_ITERATE:
sz$ = UIStartDlg(CUIDLL$, DlgSdkOption, "FCustInstDlgProc", HlpSdkOption, HELPPROC$)
if sz$ = "CONTINUE" THEN
UIPop(1)
elseif sz$ = "BACK" THEN
UIPop(1)
GOTO WELCOME
elseif sz$ = "REACTIVATE" THEN
GOTO RESTART_SDK_OPTION
elseif sz$ = "PATH" THEN
i% = GetPath(DlgGetPath ,BasePath$)
ReplaceListItem "DriveStatusText", 1, BasePath$
GOTO RESTART_SDK_OPTION
elseif sz$ = "CHK1" THEN
MSDOSSDK = GetCheck(1)
GOTO RESTART_SDK_OPTION
elseif sz$ = "CHK2" THEN
WindowsSDK = GetCheck(2)
GOTO RESTART_SDK_OPTION
elseif sz$ = "CHK3" THEN
MacSDK = GetCheck(3)
GOTO RESTART_SDK_OPTION
elseif sz$ = "BTN1" THEN
'StfApiErr saeInit, "Got sz$", sz$
i% = GetDosPath()
ReplaceListItem "DriveStatusText", 1, BasePath$
GOTO RESTART_SDK_OPTION
elseif sz$ = "BTN2" THEN
'StfApiErr saeInit, "Got sz$", sz$
i% = GetWinPath()
ReplaceListItem "DriveStatusText", 2, BaseWPath$
GOTO RESTART_SDK_OPTION
elseif sz$ = "BTN3" THEN
'StfApiErr saeInit, "Got sz$", sz$
i% = GetMacPath()
ReplaceListItem "DriveStatusText", 3, Base2Path$
GOTO RESTART_SDK_OPTION
else
'StfApiErr saeInit, "Got final sz$", sz$
GOSUB ASKQUIT
GOTO RESTART_SDK_OPTION
end if
'StfApiErr saeInit, "Got sz$", sz$
if MSDOSSDK = FALSE and WindowsSDK = FALSE and MacSDK = FALSE then
goto FullInstall
end if
FullInstall:
group$ = "Microsoft Visual C++"
if MSDOSSDK or WindowsSDK then
CreateDir BasePath$, cmoNone
CreateDir MakePath(BasePath$, "rpc"), cmoNone
' Install the SDK files first.
CreateDir MakePath(BasePath$, "include"), cmoNone
AddSectionFilesToCopyList "Base", SrcDir$, MakePath(BaseWPath$, "rpc")
AddSectionFilesToCopyList "include", SrcDir$, MakePath(BaseWPath$, "include")
AddSectionFilesToCopyList "binclude", SrcDir$, MakePath(BaseWPath$, "include")
AddSectionFilesToCopyList "bin", SrcDir$, MakePath(BaseWPath$, "bin")
endif
if WindowsSDK then
CreateDir BaseWPath$, cmoNone
if WindowsIncSDK then
AddSectionFilesToCopyList "winclude", SrcDir$, MakePath(BaseWPath$, "include\win")
end if
if WindowsLibSDK then
AddSectionFilesToCopyList "wlib", SrcDir$, MakePath(BaseWPath$, "lib")
end if
CreateProgmanGroup group$, "", cmoNone
ShowProgmanGroup group$, 1, cmoNone
CreateProgmanItem group$, "RPC ReadMe", "notepad "+MakePath(BaseWPath$, "rpc\readme.txt"), "", cmoOverWrite
end if
if MSDOSSDK then
if MSDOSIncSDK then
AddSectionFilesToCopyList "dinclude", SrcDir$, MakePath(BasePath$, "include\dos")
end if
if MSDOSLibSDK then
AddSectionFilesToCopyList "dlib", SrcDir$, MakePath(BasePath$, "lib")
end if
end if
if MacSDK then
CreateDir Base2Path$, cmoNone
if MacIncSDK then
AddSectionFilesToCopyList "minclude", SrcDir$, MakePath(Base2Path$, "include")
AddSectionFilesToCopyList "binclude", SrcDir$, MakePath(Base2Path$, "include")
end if
if MacLibSDK then
AddSectionFilesToCopyList "mlib", SrcDir$, MakePath(Base2Path$, "lib")
end if
end if
' DumpCopyList "C:\tmp\t"
CopyFilesInCopyList
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' QUIT points
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
QUIT:
ON ERROR GOTO ERRQUIT
OldNetapiPath$ = FindTargetOnEnvVar("netapi.old", "PATH")
if OldNetapiPath$ <> "" then
BackupFile OldNetapiPath$, "netapi.dll"
end if
if ERR = 0 THEN
dlg% = EXITSUCCESS
elseif ERR = STFQUIT THEN
dlg% = EXITQUIT
else
dlg% = EXITFAILURE
end if
QUITL1:
while UIStartDlg(CUIDLL$, dlg%, "FInfo0DlgProc", 0, "") = "REACTIVATE"
wend
UIPop 1
END
ERRQUIT:
i% = DoMsgBox("Setup sources were corrupted, contact technical support", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' quit prompt dialog box subroutine
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
ASKQUIT:
sz$ = UIStartDlg(CUIDLL$, ASKQUIT, "FQuitDlgProc", 0, "")
if sz$ = "EXIT" THEN
UIPopAll
ERROR STFQUIT
elseif sz$ = "REACTIVATE" THEN
GOTO ASKQUIT
else
UIPop 1
end if
RETURN
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetPath
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function GetPath(Dialog%, Path$) Static AS INTEGER
SetSymbolValue "EditTextIn", Path$
SetSymbolValue "EditFocus", "END"
sz$ = UIStartDlg(CUIDLL$, Dialog%, "FEditDlgProc", Dialog% + 1, HELPPROC$)
NewPath$ = GetSymbolValue("EditTextOut")
GetPath = FALSE
if sz$ = "CONTINUE" THEN
Path$ = NewPath$
GetPath = TRUE
end if
UIPop (1)
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetDosPath
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function GetDosPath() Static AS INTEGER
SetSymbolValue "EditTextIn", BasePath$
SetSymbolValue "EditFocus", "END"
RemoveSymbol "InnerChkItemsState"
AddListItem "InnerChkItemsState", BoolToOnOff(MSDOSIncSDK)
AddListItem "InnerChkItemsState", BoolToOnOff(MSDOSLibSDK)
RESTART_DOS_PATH:
sz$ = UIStartDlg(CUIDLL$,DlgDosSdkPath, "FMyEditDlgProc", DlgDosSdkPathHelp, HELPPROC$)
NewPath$ = GetSymbolValue("EditTextOut")
GetDosPath = FALSE
if sz$ = "CONTINUE" THEN
BasePath$ = NewPath$
GetDosPath = TRUE
elseif sz$ = "CHK1" THEN
MSDOSIncSDK = GetInnerChk(1)
GOTO RESTART_DOS_PATH
elseif sz$ = "CHK2" THEN
MSDOSLibSDK = GetInnerChk(2)
GOTO RESTART_DOS_PATH
end if
UIPop (1)
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetWinPath
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function GetWinPath() Static AS INTEGER
SetSymbolValue "EditTextIn", BaseWPath$
SetSymbolValue "EditFocus", "END"
RemoveSymbol "InnerChkItemsState"
AddListItem "InnerChkItemsState", BoolToOnOff(WindowsIncSDK)
AddListItem "InnerChkItemsState", BoolToOnOff(WindowsLibSDK)
'StfApiErr saeInit, "WindowsIncSDK is", BoolToOnOff(WindowsIncSDK)
RESTART_Win_PATH:
sz$ = UIStartDlg(CUIDLL$,DlgWinSdkPath, "FMyEditDlgProc", DlgWinSdkPathHelp, HELPPROC$)
NewPath$ = GetSymbolValue("EditTextOut")
GetWinPath = FALSE
if sz$ = "CONTINUE" THEN
BaseWPath$ = NewPath$
GetWinPath = TRUE
elseif sz$ = "CHK1" THEN
WindowsIncSDK = GetInnerChk(1)
GOTO RESTART_Win_PATH
elseif sz$ = "CHK2" THEN
WindowsLibSDK = GetInnerChk(2)
GOTO RESTART_Win_PATH
end if
UIPop (1)
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetMacPath
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Function GetMacPath() Static AS INTEGER
SetSymbolValue "EditTextIn", Base2Path$
SetSymbolValue "EditFocus", "END"
RemoveSymbol "InnerChkItemsState"
AddListItem "InnerChkItemsState", BoolToOnOff(MacIncSDK)
AddListItem "InnerChkItemsState", BoolToOnOff(MacLibSDK)
RESTART_Mac_PATH:
sz$ = UIStartDlg(CUIDLL$,DlgMacSdkPath, "FMyEditDlgProc", DlgMacSdkPathHelp, HELPPROC$)
NewPath$ = GetSymbolValue("EditTextOut")
GetMacPath = FALSE
if sz$ = "CONTINUE" THEN
Base2Path$ = NewPath$
GetMacPath = TRUE
elseif sz$ = "CHK1" THEN
MacIncSDK = GetInnerChk(1)
GOTO RESTART_Mac_PATH
elseif sz$ = "CHK2" THEN
'StfApiErr saeInit, "Got sz$", sz$
GOTO RESTART_Mac_PATH
end if
UIPop (1)
end function
'**
'** Purpose:
'** Appends a file name to the end of a directory path,
'** inserting a backslash character as needed.
'** Arguments:
'** szDir$ - full directory path (with optional ending "\")
'** szFile$ - filename to append to directory
'** Returns:
'** Resulting fully qualified path name.
'*************************************************************************
FUNCTION MakePath (szDir$, szFile$) STATIC AS STRING
if szDir$ = "" THEN
MakePath = szFile$
elseif szFile$ = "" THEN
MakePath = szDir$
elseif MID$(szDir$, LEN(szDir$), 1) = "\" THEN
MakePath = szDir$ + szFile$
else
MakePath = szDir$ + "\" + szFile$
end if
END FUNCTION
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetCheck
'
' returns true if the specified item is checked
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
FUNCTION GetCheck (index%) STATIC AS INTEGER
if GetListItem("CheckItemsState", index%) = "ON" then
GetCheck = TRUE
else
GetCheck = FALSE
end if
END FUNCTION
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetInnerChk
'
' returns true if the specified item is checked
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
FUNCTION GetInnerChk (index%) STATIC AS INTEGER
if GetListItem("InnerChkItemsState", index%) = "ON" then
GetInnerChk = TRUE
else
GetInnerChk = FALSE
end if
END FUNCTION
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Sub CopyList
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Sub CopyList(ListOut$, ListIn$, Truncate%) static
if Truncate% <> 0 then
RemoveSymbol ListOut$
end if
for i% = 1 to GetListLength(ListIn$) step 1
AddListItem ListOut$, GetListItem(ListIn$, i%)
next
end sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function BoolToOnOff
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function BoolToOnOff (Bool%) static AS String
if Bool% then
BoolToOnOff$ = "ON"
else
BoolToOnOff$ = "OFF"
end if
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function FormatSize
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function FormatSize () static AS String
cbMore& = GetCopyListCost ("", "Cost", "")
cbSize = val(GetListItem("Cost", asc(BasePath$) - asc("A") + 1)) / 1024
if cbSize then
FormatSize = str$(cbSize)+"K"
else
FormatSize = ""
end if
ClearCopyList
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Sizing functions
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetDosSize
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function GetDosSize () static AS String
if MSDOSSDK then
if MSDOSIncSDK then
AddSectionFilesToCopyList "include", SrcDir$, BasePath$
AddSectionFilesToCopyList "binclude", SrcDir$, BasePath$
AddSectionFilesToCopyList "dinclude", SrcDir$, BasePath$
end if
if MSDOSLibSDK then
AddSectionFilesToCopyList "dlib", SrcDir$, BasePath$
end if
end if
GetDosSize = FormatSize()
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetWinSize
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function GetWinSize () static AS String
if WindowsSDK then
if WindowsIncSDK then
AddSectionFilesToCopyList "include", SrcDir$, BaseWPath$
AddSectionFilesToCopyList "binclude", SrcDir$, BaseWPath$
AddSectionFilesToCopyList "winclude", SrcDir$, BaseWPath$
end if
if WindowsLibSDK then
AddSectionFilesToCopyList "wlib", SrcDir$, BaseWPath$
end if
end if
GetWinSize = FormatSize()
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Function GetMacSize
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function GetMacSize () static AS String
if MacSDK then
if MacIncSDK then
AddSectionFilesToCopyList "minclude", SrcDir$, Base2Path$
AddSectionFilesToCopyList "binclude", SrcDir$, Base2Path$
end if
if MacLibSDK then
AddSectionFilesToCopyList "mlib", SrcDir$, Base2Path$
end if
end if
GetMacSize = FormatSize()
end function
|