REM INSTALL.BAT: Copyright (c) 1987 by R A Kelly
echo off
cls
if %2x==x goto NODRIVE
echo All disk drive designations must end with colons.  For instance, drive C
echo is designated as "C:", not "C".  Make absolutely sure that you have desig-
echo nated your hard disk correctly.
echo .
echo If your hard disk is not "%2", then press Control-C to abort; otherwise,
pause
echo off
cls
%2
cd\
md MANAGEX
cls
cd\MANAGEX
if exist M--PRJCT.LBF goto SKIPSPAC
echo off
cls
echo MultiTrack requires a minimum of 1 megabyte of hard disk space.
echo .
echo .
echo If you have any doubt that your hard disk has at least 1 megabyte of free
echo space, press Control-C to abort this installation; otherwise,
pause
:SKIPSPAC
if not exist M--PRJCT.LBF goto SKIPBACK
echo off
cls
echo .
echo .
echo     Before you go through this installation, please insure that you have
echo current backups of MultiTrack data you may have developed before today.
echo If you do not have such backups, press Control-C and make them; otherwise,
pause
:SKIPBACK
%1
echo Copying files...
copy *.* %2/v
%2
echo .
echo Erasing old files (if any exist) ...
erase t*.hlp
if exist blankcal erase blankcal
if exist multtrak.exe erase multtrak.exe
if exist multTrak.ovr erase multTrak.ovr
if exist sample.lbt erase sample.lbt
if exist sample.rpt erase sample.rpt
if exist sample1.rpt erase sample1.rpt
if exist sample2.rpt erase sample2.rpt
if exist multtrak.doc erase multtrak.doc
if exist upgrd.com erase upgrd.com
if exist m-lbmerge.dat erase m-lbmerge.dat
if exist prntdrvr.exe erase prntdrvr.exe
if exist editx.exe erase editx.exe
if exist to.exe erase to.exe
if exist from.exe erase from.exe
if exist mt-fix.exe erase mt-fix.exe
if exist printdoc.bat erase printdoc.bat
if exist b-beep.exe erase b-beep.exe
cls
if not exist recur.dat goto EXTRACT
echo                              VERY IMPORTANT
echo .
echo .
echo Now, some program files will be extracted from an archive.  Before each
echo file is extracted, a check will be made to see whether a similarly named
echo one already exists on your hard disk.  If so, you'll be asked whether you
echo wish to overwrite it with a new copy. If you were to answer "YES", some of
echo your customizations might be overwritten with plain "vanilla" data.
echo .
echo           THEREFORE, ALWAYS ANSWER "NO" BY PRESSSING THE "N" KEY.
echo .
echo .
echo .
pause
cls
:EXTRACT
mt1
mt2
erase mt1.exe
erase mt2.exe
upgrd %2
erase upgrd.*
if exist M--PRJCT.LBF goto SKIPDOC
erase 1sttime.fyl
cls
echo The instructions must be printed.
echo .
echo .
echo Now, turn your printer OFF and then ON.  Make sure that it is ready to 
echo print and that you have loaded at least 60 sheets of paper.  Then, align
echo the print head 1/2" below the top of the first sheet.
echo .
pause
cls
echo Printing documentation...
type README.DOC >prn
type MULTTRAK.DOC >prn
cls
echo The documentation has been printed.
echo .
pause
cls
echo .
echo MultiTrack is now installed on your hard disk in the MANAGEX directory. To
echo access the program, do the following:
echo .
echo     1) enter "%2" at the prompt (this logs you onto drive %2);
echo     2) enter "CD\MANAGEX" at the prompt ("CD" means "Change Dirctory");
echo     3) enter "MT" at the prompt.
echo .
echo .
echo Also, remember to go through the instructions, step by step.
echo .
echo .
pause
cls
echo At your earliest convenience, copy the BACKUP and RESTORE utilities (from
echo the DOS diskette that came with your computer) to the MANAGEX directory,
echo or make sure that those two utilities are in your computer's "PATH".
echo MultiTrack needs them for creating and restoring archive files.
echo .
echo .
echo Now, let's get started.
echo .   
echo .    
echo You are about to enter the MultiTrack program.  The only things you need 
echo do at this time are to enter the correct date (when asked) and go through
echo the customizing routine.  Feel free to play around, but don't use the 
echo program "for real" until you have read the entire documentation.
echo .
echo .
echo Good luck.
echo .
echo .
pause
mt
:SKIPDOC
echo off
cls
echo .
echo .
echo To print the full MultiTrack documentation, load about 60 sheets into your
echo printer.  Then, align the printhead about 1/2" below the top of the first
echo sheet and type "PRINTDOC" at the prompt below.
echo.
echo.
echo .
echo .
echo  Thanks for your support!
echo .
echo .
goto END
pause
:NODRIVE
cls
echo .
echo      You must designate BOTH the SOURCE diskette and the HARD disk
echo .
echo examples:
echo .
echo     "B:INSTMLTK B: C:"  will install MULTITRACK from drive B to drive C
echo     "A:INSTMLTK A: D:"  will install MULTITRACK from drive A to drive D
echo .
echo            PLEASE TRY AGAIN
:END