echo off
cls
if %2x==x goto NODRIVE
echo All disk drive designations must end with colons. For instance, drive C is
echo designated as "C:", not "C". Make absolutely sure that you have designated
echo your hard disk correctly.
echo .
echo If your hard disk is not "%2", then press Control-C to abort; otherwise,
pause
echo off
cls
echo Installing MT-Trak onto your hard disk requires 1MB of free disk space.
echo If you're not SURE that 1MB is free, press Control-C to abort; otherwise,
pause
echo off
cls
%2
cd\
md PS
cls
cd\PS
:SKIPBACK
cls
if exist upgrd.exe erase upgrd.exe
copy %1*.*
if exist t0.hlp erase t?.hlp
cls
echo just a minute...
if exist lb-rate.dat rename lb-*.dat lb-*.lbf
if exist m-group.dat rename m-gr*.dat m-gr*.lbf
if exist recur.dat rename r*.dat r*.lbf
if exist incexpns.dat rename incexpns.dat incexpns.lbf
if exist export.exe erase export.exe
if exist printdoc.bat erase printdoc.bat
if exist manual.idx erase manual.idx
if exist manual erase manual
if exist help erase help
if exist messages erase messages
if exist blankyr erase blankyr
if exist blankcal erase blankcal
if exist blankcl erase blankcl
if exist alarm.dat erase alarm.dat
if exist MAINPROG.exe erase MAINPROG.*
if exist MTTRACK.doc erase MTTRACK.*
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 upgrd.com erase upgrd.com
if exist prntdrvr.exe erase prntdrvr.exe
if exist editx.exe erase editx.exe
if exist pc-beep.exe erase pc-beep.exe
cls
if not exist m-journ.lbf 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.
echo .
echo              ALWAYS ANSWER "NO" (BY PRESSSING THE "N" KEY).
echo .
echo .
pause
cls
:EXTRACT
ptrk
erase ptrk.exe
mainprog u %2 ~5
mainprog i ~5
mainprog t cities
echo off
cls
if exist 1sttime.fyl erase 1sttime.fyl
if exist m-journ.lbf goto NOTFIRST
mainprog p
mainprog m
:NOTFIRST
echo off
cls
echo .
echo .
echo    To use MT-Trak, go to the PS directory on drive %2 and enter
echo  "PS xxx" (where xxx are your initials).  For example, if your initials
echo are ABC, you sould enter  "PS ABC" (without the quotes) to use MT-Trak.
echo .
echo .
pause
echo off
cls
goto END
:NODRIVE
cls
echo .
echo      You must designate BOTH the SOURCE diskette and the HARD disk
echo .
echo example: B:INSTALL B: C:  will install MT-Trak from drive B to drive C:
echo .
echo            PLEASE TRY AGAIN
:END
