echo off
cls
rem Batch file to install AB release of MSDOS ABMATE/ABPC software
rem on logged disk.

echo *
echo *
echo *		Alpha Base MSDOS ABMATE/ABPC Software Installation
echo *
echo *
echo *  There are two sets of software you can install to the
echo *  current drive: (The install diskette must be in drive A: !!!)
echo *
echo *		ABMATE - smart terminal software
echo *		PC1    - ABPC AM113 coprocessor software
echo *
echo *
echo *
echo *
echo *
echo *
echo *
echo *
echo *
echo *
echo *
pause
echo *
echo *  To INSTALL the software on the current drive, you MUST be sure:
echo *
echo *	  step 1.  Installation diskette must be in floppy drive A:
echo *	  step 2.  Logged on disk inwhich software is copied to.
echo *	  step 3.  Logged in subdirectory inwhich software is copied to.
echo *	  step 4.  Or use "STD" option to create and load software
echo *		   to subdirectory = \ABDIR.
echo *	  step 5.  Add to MSDOS path list the selected subdirectory.
echo *	  step 6.  To start installation, enter: A:INSTALL etc., etc.
echo *
echo *
echo *
echo *
echo *
echo *
echo *
echo *	Be SURE the above steps have been satisfied!!!
echo *  If not, NOW IS the time to Ctrl C or Abort out:
echo *
pause
echo *
echo *  To install ABMATE software on current drive, you would enter:
echo *	       		A:INSTALL ABMATE SEL
echo *		or	A:INSTALL ABMATE STD
echo *			  where STD will create \ABDIR subdirectory
echo *			  where SEL will use current subdirectory
echo *
echo *
echo *
echo *  To install PC1 software on current drive, you would enter:
echo *			A:INSTALL PC1 SEL
echo *		or	A:INSTALL PC1 STD
echo *
echo *
echo *
echo *
echo *  Your ENTERED command line is:
echo *			%0 %1 %2
echo *
echo *  Did you enter INSTALL command line correctly?
echo *  If not, NOW IS the time to Ctrl C or Abort out:
echo *
pause

if %2==std goto instl1
if %2==STD goto instl1
if %2==sel goto instl2
if %2==SEL goto instl2
goto error

:instl1
if EXIST \abtst\*.cfg goto instl2
cd \
md ABDIR
cd ABDIR

:instl2
if %1==abmate goto rmte
if %1==ABMATE goto rmte
if %1==pc1 goto inspc1
if %1==PC1 goto inspc1

:error
echo *
echo *  ERROR!!! - Input parameters not correct.
echo *
goto done

rem install ABMATE remote software
:rmte

echo *
echo *	Now installing ABMATE software.....

rem install common software
copy a:\abdemo.exe
copy a:\expc.lit
copy a:\rcv.lit
copy a:\snd.lit
copy a:\read.me
copy a:\update.doc

copy a:\absetup.bib
copy a:\abset.exe
copy a:\display.com
copy a:\beg.com
copy a:\end.com
copy a:\absetup.bat

copy a:\abpack.exe
copy a:\dsply.exe

rem install ABMATE dependent software
echo copying...
copy a:\mate
echo *
goto done

rem install PC-1 coprocessor software
:inspc1

echo *
echo *	Now installing PC1 software.....

rem install common software
copy a:\abdemo.exe
copy a:\expc.lit
copy a:\rcv.lit
copy a:\snd.lit
copy a:\read.me
copy a:\update.doc

copy a:\absetup.bib
copy a:\abset.exe
copy a:\display.com
copy a:\beg.com
copy a:\end.com
copy a:\absetup.bat

copy a:\abpack.exe
copy a:\amfmt.exe
copy a:\amgen.bat
copy a:\dsply.exe

rem install PC-1 dependent software
echo copying...
copy a:\pc1
echo *
goto done

:done
echo *
echo *  Install repeatively to create your operating environment!!!
echo *  Also read the READ.ME file for additional setup information!!!
echo *  UPDATE.DOC contains information on new features for this release.
echo *
echo *  Done....
echo *

REM DONE....