
godir %1:%4 CantCreate

if not exist vol\simsound.vol goto NoGame

space %1: 10000 NoMinSpace
clear

echo The install program will now copy 
echo the EarthSiege Expansion Pack to your hard drive.
echo Approximate hard drive space required:  8.5 Megs
echo Hard drive space required during install:  10 Megs
echo
echo Do you wish to (C)ontinue or (E)xit?
pick ce Continue Exit

:Continue
%1:
clear
echo There are 3 disks to install.
echo It takes about 10 minutes copy and unpack the files.
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 README file for tips on
echo resolving the problem.
echo
echo Copying Game files...

exists %2:..\RESOURCE.000 Please insert the disk labeled "Disk 1" in drive %2:.
godir %4\install CantCreate
copy %2:readme .
godir %4 CantCreate

copy %2:..\unchunk.exe
copy %2:..\RESOURCE.000
clear
echo Uncompressing Files - We are currently uncompressing
echo the game files from Disk 1.  This process can take
echo anywhere from 1-5 minutes depending on the speed of
echo your computer.
echo
echo You will notice that the light on the floppy drive
echo will not be active.  This is normal.  The computer 
echo will prompt you when the uncompression procedure 
echo has finished.  If you are using a disk caching 
echo program, you may also notice that the hard drive
echo light will not access often.
echo
echo Processing %2: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 to fill out your Sierra
echo Warranty Registration card.  You will find it 
echo attached to your simulation manual.  Please fill it 
echo out and send the bottom section back (we even pay the 
echo postage!).  Keep the top section for your records.
echo
echo Sending in the Sierra Registration card not only
echo lets us know that you have purchased the EarthSiege
echo Expansion Pack, it will also enable you to receive
echo a free subscription to our InterAction magazine 
echo which contains gameplay tips, strategies, previews 
echo and reviews of the most popular 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.  You may also view this
echo file in the install program itself.  The "readme" file 
echo is considered to be part of your EarthSiege game 
echo documentation, and should not be missed!
echo
echo Processing %2: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:.

copy %2:RESOURCE.002 
clear
echo To get the full blown EarthSiege experience, pick up a
echo copy of the Metaltech: EarthSiege Speech Pack.  
echo Alongside the digitized explosions and rumbling bass
echo of robotic combat, the voices of your commander,
echo fellow pilots, and mechanics accompany game play, 
echo heightening the drama and intensifying the action-- 
echo a must for those who want the maximum game experience.
echo
echo Processing %2:resource.002...
unchunk RESOURCE.002 . > nul
if ERRORLEVEL 1 goto BadChunk
del RESOURCE.002

exists %2:RESOURCE.000 Please insert the disk labeled "Disk 1" in drive %2:.

del UNCHUNK.EXE

if not exist VOL\T.VOL goto Install1
godir %1:%4\vol CantCreate
del T.VOL
godir %1:%4 CantCreate

:Install1
if exist ESCD.EXE del ESCD.EXE

end

:NoSpace
clear
echo
alert There is not enough space on %1: to install the EarthSiege Expansion Pack on your hard drive.  8 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 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 messa
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
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 f
end

:NoGame
alert Can't find MetalTech: EarthSiege installed in %1:%4
end
