home *** CD-ROM | disk | FTP | other *** search
- echo off
- if not (%2)==() goto 40
- cls
- echo ╒════════════════════════════════════════════════════╕
- echo │ This INSTALL#.BAT batch file is meant to be │
- echo │ run only by the main installation batch file, │
- echo │ INSTALL.BAT (found on Distribution Disk #1). │
- echo │ │
- echo │ To install all BOYAN files, use the command: │
- echo │ INSTALL drive:\path │
- echo ╘════════════════════════════════════════════════════╛
- goto end
- :40
- echo ├────────────────────────────────────────────────────┐
- if not exist %1\boyan.* goto 41
- echo │ Renaming previous BOYAN files to BOYANOLD.* ... │
- copy %1\boyan.* %1\boyanold.*
- del %1\boyan.*
- :41
- if not exist %1\*.cnf goto 42
- echo │ Renaming previous *.CNF files to *.OLD ... │
- copy %1\*.cnf %1\*.old
- del %1\*.cnf
- :42
- echo │ Installing BOYAN program files ... │
- pkunzip -o boyan52A %1 boyan.com boyan.hlp > nul
- echo │ Installing overlay files ... │
- pkunzip -o boyan52A %1 boyan.00? > nul
- echo │ Installing BOYAN Action Modules ... │
- pkunzip -o boyan52A %1 *.bam *.cnf > nul
- if (%2)==(floppy) goto 45
- echo │ Installing "README" files ... │
- pkunzip -o boyan52A %1 read*.* *.doc *.txt > nul
- echo │ Installing Desqview and Windows PIF files ... │
- pkunzip -o boyan52A %1 *.dvp *.pif > nul
- echo │ Installing BOYAN script files ... │
- pkunzip -d -o boyan52A %1\SCRIPT *.bsc > nul
- echo │ Creating subdirectories: UL, DL, HOST, FON, ... │
- pkunzip -d -o boyan52A %1\UL install.bat > nul
- del %1\UL\install.bat
- pkunzip -d -o boyan52A %1\DL install.bat > nul
- del %1\DL\install.bat
- pkunzip -d -o boyan52A %1\HOST\FILES install.bat > nul
- del %1\HOST\FILES\install.bat
- pkunzip -d -o boyan52A %1\FON install.bat > nul
- del %1\FON\install.bat
- if not exist %1\boyanold.fon goto 48
- echo │ ══ Your old FON directory is now "BOYANOLD.FON" ══ │
- copy %1\boyanold.fon %1\FON
- goto 48
- :45
- echo ├────────────────────────────────────────────────────┤
- echo │ ═══ Done installing onto BOYAN PROGRAM Disk ═══ │
- echo │ │
- echo │ Please remove the Program Disk from drive %1 now │
- echo │ and replace it with the SCRIPTS & PROTOCOLS Disk.│
- if not exist readme.2 echo │ (DO NOT replace the BOYAN Distribution Disk.) │
- echo │ » Press [space] when ready to continue « │
- echo ├────────────────────────────────────────────────────┤
- pause > nul
- echo │ Creating %1\FON subdirectory ... │
- pkunzip -d -o boyan52A %1\FON install.bat > nul
- del %1\FON\install.bat
- echo │ Installing BOYAN script files ... │
- pkunzip -d -o boyan52A %1\SCRIPT *.bsc > nul
- echo │ Installing "README" files ... │
- pkunzip -o boyan52A %1 read*.* *.doc *.txt > nul
- :48
- echo ├────────────────────────────────────────────────────┤
- if exist boyan52b.zip goto 50
- echo │ boyan52B.ZIP not found! │
- echo │ The BOYAN User's Manual will not be copied. │
- goto 110
- :50
- pkunzip -o boyan52B %1 read*.* > nul
- %1\needfree %1 400
- if not errorlevel 1 goto 100
- echo │ To conserve space on the destination disk, │
- echo │ the BOYAN User's Manual will not be copied. │
- echo │┌──────────────────────────────────────────────────┐│
- echo ││ PLEASE TAKE NOTE: To print the manual directly ││
- echo ││ from the boyan52b.zip file, use the command, ││
- echo ││ PKUNZIP -P boyan52B BOYAN.DOC ││
- echo │└──────────────────────────────────────────────────┘│
- goto 110
- :100
- echo │ Installing BOYAN documentation ... │
- pkunzip -o boyan52B %1 boy*.* > nul
- :110
- echo ├────────────────────────────────────────────────────┤
- if not exist readme.1 goto 290
- echo │ The last phase of installation is to install │
- echo │ several external protocol driver programs. │
- echo │ Note that these programs are ShareWare, not │
- echo │ written by Justin Boyan. Please register │
- echo │ those you use with their respective authors! │
- echo ├────────────────────────────────────────────────────┤
- if exist readme.2 goto 120
- echo │ Please replace Distribution Disk 1 with Disk 2 │
- echo │ » now; then press [space] when ready to continue.« │
- echo ├────────────────────────────────────────────────────┤
- pause > nul
- :120
- if not exist dsz.zip goto 130
- echo │ Installing DSZ (Zmodem) protocol ... │
- pkunzip -d -o dsz %1\prot *.exe *.com > nul
- :130
- if not exist pckermit.zip goto 140
- echo │ Installing PCKERMIT (Kermit) protocol ... │
- pkunzip -d -o pckermit %1\prot *.exe *.com > nul
- :140
- if not exist ozbext.zip goto 150
- echo │ Installing OZBEXT (Compuserve-B) protocol ... │
- pkunzip -d -o ozbext %1\prot *.exe *.com > nul
- :150
- if not exist ted.zip goto 160
- echo │ Installing TED (Tiny Editor) ... │
- pkunzip -o ted %1 *.com > nul
- :160
- goto 300
- :290
- echo │ Note: BOYAN comes preconfigured to use several │
- echo │ "external protocols," including Zmodem, Kermit, │
- echo │ Compuserve-B, MPt, and BiModem. For these to │
- echo │ work, you need certain additional programs such │
- echo │ as DSZ and PCKERMIT, available as Shareware. │
- echo │ Consult README.2 and BOYAN.DOC for instructions │
- echo │ on how to integrate those programs with BOYAN. │
- :300
- echo ├────────────────────────────────────────────────────┤
- echo │ Installation completed! │
- echo │ │
- if not (%2)==(floppy) goto 320
- echo │ To run BOYAN 5.1 now, remove Distribution Disk 2 │
- echo │ and replace it with your BOYAN PROGRAM Disk. │
- echo │ Leave the SCRIPTS & PROTOCOLS Disk in drive %1. │
- echo │ │
- del %1\needfree.exe
- goto run
- :320
- %1\needfree %1 CD
- del needfree.exe
- :run
- echo │ Press [space] to run BOYAN 5.1 now, or │
- echo │ [Ctrl-Break] to return to DOS. │
- echo ╘════════════════════════════════════════════════════╛
- pause > nul
- boyan
- :end