clear

echo The install program will now copy Front Page Sports:
echo Baseball to your hard drive.  You will need to have
echo approximately 18 Megabytes of hard drive space
echo available to complete the install procedure.
echo
echo If this installation process fails for any reason, you
echo should consult the troubleshooting section of your
echo game manual as well as the READ.ME file for tips on
echo resolving the problem.
echo
echo The next few screens will provide you with additional
echo information that can help you enjoy FPS:Baseball.
echo
echo Do you wish to (C)ontinue or (E)xit?
pick ce Continue Exit

:Continue
clear
%1:
godir %4 CantCreate

exists %2:RESOURCE.000 Please insert the disk labeled "Disk 1" in drive %2:.
clear
echo The first thing we will do is copy the files from the
echo game Disk 1 to the drive and directory you specified.
echo
echo Copying files to %1:%4...
copy %2:*.*

clear
echo Uncompressing Files - We are currently uncompressing
echo the game files from Disk 1.  This process can take
echo anywhere from 5-20 minutes depending on the speed of
echo your computer.
echo
echo You will notice that the light on the floppy drive
echo is not active.  This is normal during the 
echo uncompression process.  The computer will prompt
echo you when the uncompression procedure has finished.
echo
echo If you are using a disk caching program a large amount
echo of the processing will take place in memory and you
echo won't see the hard drive access light very often.
echo
echo Unchunking %1:%4\resource.000...
unchunk RESOURCE.000 . > nul
if ERRORLEVEL 1 goto BadChunk
del RESOURCE.000

exists %2:RESOURCE.001 Please insert the disk labeled "Disk 2" in drive %2:.
clear
echo Now would be a good time start filling out your Sierra
echo Warranty Registration card.  You will find the card 
echo attached to your manual.  Please fill out the card and
echo send back the bottom part (we even pay the postage!).
echo Keep the top part for your records.
echo
echo When you send in your Registration card it not only
echo lets us know that you have purchased Baseball, but you
echo will receive a free subscription to our InterAction
echo magazine which contains gameplay tips, strategies,
echo previews and reviews of the many educational and
echo entertainment titles released by Sierra Publishing.
echo
copy %2:RESOURCE.001 
clear
echo Sending in your Registration card also lets us know a
echo little more about you and your computer so we can do a
echo better job of making the kind of games you want!
echo
echo Have you read the "readme" file yet?  Well, if you
echo haven't, put it on your list of things to do.  The
echo "readme" file contains information that was not
echo available when the manual was sent to the printers.
echo You can view the "readme" file by loading it into your
echo word processor or text editor, or from the "install"
echo menu.  The "readme" file is considered to be part of
echo the game documentation.
echo
echo Unchunking %1:%4\resource.001...
unchunk RESOURCE.001 . > nul
if ERRORLEVEL 1 goto BadChunk
del RESOURCE.001

exists %2:RESOURCE.002 Please insert the disk labeled "Disk 3" in drive %2:.
clear
echo And don't forget to check out the manual!  The
echo Baseball manual contains detailed step-by-step
echo instructions describing how to perform the various
echo functions available in Baseball, as well as answers
echo to common configuration questions.
echo
echo Be sure to try the DataIn program.  To run it, simply
echo type DATAIN from the Baseball directory and hit ENTER.
echo DataIn will allow you to create historical teams and
echo players for use with Baseball.  The teams can be
echo imported into New Associations and the individual
echo players can be added to the Free Agent list of
echo existing Baseball Associations.
echo
copy %2:RESOURCE.002
clear
echo Try the online help in Baseball and DataIn.  It
echo provides an instant, context-sensitive reference to
echo the game functions and procedures.
echo
echo Unchunking %1:%4\resource.002...
unchunk RESOURCE.002 . > nul
if ERRORLEVEL 1 goto BadChunk
del RESOURCE.002

exists %2:RESOURCE.003 Please insert the disk labeled "Disk 4" in drive %2:.
clear
echo Heard about Football Pro '95?  This is the latest
echo version of the best PC sports game as voted two years
echo in a row by Computer Gaming World!  The latest
echo version contains the CAMS system that lets you view
echo the game from virtually any angle, as well as all of
echo the new rule changes, the NFL and NFLPA license, and
echo more.  Ask your computer software retailer about it
echo today!
echo
copy %2:RESOURCE.003 
clear
echo This is the final disk.  We are confident that you
echo will enjoy the game and spend many enjoyable hours
echo exploring the variety of options available to you.
echo
echo    Have fun!  And, thank you for purchasing
echo         Front Page Sports:  Baseball!
echo
echo Unchunking %1:%4\resource.003...
unchunk RESOURCE.003 . > nul
if ERRORLEVEL 1 goto BadChunk
del RESOURCE.003
del UNCHUNK.EXE

copy assn\_default.pyr assn\mlbpa94.pyr
copy stats\_default.dat stats\mlbpa94.dat

clear
echo It appears that Baseball has been successfully
echo installed to your hard drive.  To play Baseball,
echo use the MS-DOS(r) CD command to change to the
echo %1:%4 directory as in:
echo
echo CD %4 [ENTER]
echo
echo Then type PLAYBALL and hit [ENTER] to run the game.
echo
echo Please write this down for future reference.
echo
echo Press the 'C' key to (C)ontinue...
pick c exit
end

:NoSpace
clear
echo
alert There is not enough space on %1: to install Front Page Sports: Baseball on your hard drive.  At least 18 megabytes of disk space are necessary.
end

:CantCreate
clear
echo
alert Unable to create directory %4
end

:Corrupted
alert Corrupted files exist.  Please run install again.
end

:BadChunk
if ERRORLEVEL 6 goto ERR6
if ERRORLEVEL 5 goto ERR5
if ERRORLEVEL 4 goto ERR4
if ERRORLEVEL 3 goto ERR3
if ERRORLEVEL 2 goto ERR2
if ERRORLEVEL 1 goto ERR1
alert Unable to extract resource file.  Please run install again.
end

:ERR1
alert Unable to read resource file.  Make sure the drive door is shut and run install again.
end
:ERR2
alert Unable to write resource file to hard drive.  This program only installs games on hard drives.  Run install again.  If you get this message again you may have a problem with your hard drive.
end
:ERR3
alert Not enough memory to run extraction program.  The extraction program needs a minimum of 550k to operate.
end
:ERR4
alert The resource file is bad.  Run install again.  If you get this message again, you probably received a bad disk.
end
:ERR5
alert Unable to open the resource file for reading.  A possible solution might be to increase the value of the FILES setting in your CONFIG.SYS file.
end
:ERR6
alert Unable to open the target file for writing.  A possible solution might be to increase the value of the FILES setting in your CONFIG.SYS file.
end

:exit

end
