:start
clear
echo You have a choice of installation size depending on
echo your hard disk capacity and machine speed. For the
echo fastest game response, choose the full installation.
echo If you  have limited hard disk space available,
echo choose the minimum or medium installation option.
echo
echo            Installation size option
echo               a:  minimum install (4.5 meg) 
echo               b:  medium  install (11 meg)
echo               c:  full    install (32 meg)
echo
echo                (type a,b, or c)
echo       
echo            Type F1 to cancel. 
echo
pick abc  minInst medInst maxInst

:minInst
cd ..\..
godir %1:%4 CantCreate
space %1: 4500 NoMinSpace
rem *** copy files to install destination directory ***
clear
godir %1:%4\car CantCreate
copy %2:car\*.* .
godir %1:%4\data CantCreate
copy %2:data\*.* .
godir %1:%4\sos CantCreate
copy %2:sos\*.* .
godir %1:%4\sset CantCreate
copy %2:sset\*.* .
godir %1:%4\tapes CantCreate
copy %2:tapes\*.* .
godir %1:%4\vol CantCreate
copy %2:vol\simsound.vol .
copy %2:vol\simvoice.vol .
godir %1:%4\install CantCreate
copy %2:install\english\*.* .
copy %2:install\hdstuff\*.* .
godir %1:%4 CantCreate
copy %2:install\english\resource.cfg .
copy %2:stuff\*.* .
clear
rem *** make executable batch file ***
echo @echo off>es.bat
echo mode co80>>es.bat
echo set ALT_DRIVE=%1:>>es.bat
echo set PREFER_ALT=1>>es.bat
echo %2:>>es.bat
echo escd>>es.bat
echo %1:>>es.bat

clear
echo
echo  To play NOW:
echo    Type ES [ENTER].
echo
echo  To play LATER:
echo     From the directory of %1:%4,
echo     Type ES and press [ENTER].
echo     Make sure the CD is in the same
echo     drive that the game was installed from.
echo
pause

goto exit




:medInst
cd ..\..
godir %1:%4 CantCreate
space %1: 11000 NoMedSpace
rem *** copy files to install destination directory ***
clear
godir %1:%4\car CantCreate
copy %2:car\*.* .
godir %1:%4\data CantCreate
copy %2:data\*.* .
godir %1:%4\sos CantCreate
copy %2:sos\*.* .
godir %1:%4\sset CantCreate
copy %2:sset\*.* .
godir %1:%4\tapes CantCreate
copy %2:tapes\*.* .
godir %1:%4\vol CantCreate
copy %2:vol\t.vol .
copy %2:vol\simsound.vol .
copy %2:vol\simvoice.vol .
copy %2:vol\simvol0.vol .
copy %2:vol\simlang.vol .
copy %2:vol\detect.vol .
godir %1:%4\install CantCreate
copy %2:install\english\*.* .
copy %2:install\hdstuff\*.* .
godir %1:%4 CantCreate
copy %2:install\english\resource.cfg .
copy %2:stuff\*.* .
clear
rem *** make executable batch file ***
echo @echo off>es.bat
echo mode co80>>es.bat
echo set ALT_DRIVE=%1:>>es.bat
echo set PREFER_ALT=1>>es.bat
echo %2:>>es.bat
echo escd>>es.bat
echo %1:>>es.bat

clear
echo
echo  To play NOW:
echo    Type ES [ENTER].
echo
echo  To play LATER:
echo     From the directory of %1:%4,
echo     Type ES and press [ENTER].
echo     Make sure the CD is in the same
echo     drive that the game was installed from.
echo
pause

goto exit

:maxInst
cd ..\..
godir %1:%4 CantCreate
space %1: 32000 NoMaxSpace
rem *** copy files to install destination directory ***
clear
godir %1:%4\car CantCreate
copy %2:car\*.* .
godir %1:%4\data CantCreate
copy %2:data\*.* .
godir %1:%4\sos CantCreate
copy %2:sos\*.* .
godir %1:%4\sset CantCreate
copy %2:sset\*.* .
godir %1:%4\tapes CantCreate
copy %2:tapes\*.* .
godir %1:%4\vol CantCreate
copy %2:vol\simlang.vol .
copy %2:vol\detect.vol .
copy %2:vol\simsound.vol .
copy %2:vol\simvoice.vol .
copy %2:vol\simvol0.vol .
copy %2:vol\speech.vol .
copy %2:vol\zones.vol .
copy %2:vol\pzones.vol .
copy %2:vol\shell0.vol .
copy %2:vol\pshell0.vol .
copy %2:vol\t.vol .
godir %1:%4\install CantCreate
copy %2:install\english\*.* .
copy %2:install\hdstuff\*.* .
godir %1:%4 CantCreate
copy %2:install\english\resource.cfg .
copy %2:stuff\*.* .
copy %2:go.exe .
copy %2:dbsim.exe .
copy %2:detect.exe .
copy %2:escd.exe .
clear
rem *** make executable batch file ***
echo @echo off>es.bat
echo mode co80>>es.bat
echo set ALT_DRIVE=%2:>>es.bat
echo set PREFER_ALT=>>es.bat
echo escd>>es.bat

clear
echo
echo  To play NOW:
echo    Type ES [ENTER].
echo
echo  To play LATER:
echo     From the directory of %1:%4,
echo     Type ES and press [ENTER].
echo     To get the best version of the movie sequences,
echo     make sure the EarthSiege CD is in your CD drive.
echo
pause

goto exit





:exit
rem *** add flic path to resource file ***
echo @echo off >data\addr.bat
echo install\addres FlicPlayer pathFlic flic\ %2 resource.cfg >>data\addr.bat

:done
end





:NoMinSpace
clear
echo
echo There is not enough space on %1: to install EarthSiege!
echo 4.5 megabytes of disk space are necessary.
echo
pause
goto end

:NoMedSpace
clear
echo
echo There is not enough space on %1: for the medium sized
echo installation of EarthSiege. 10.5 Megabytes are necessary.
pause
goto start

:NoMaxSpace
clear
echo
echo There is not enough space on %1: for the maximum sized
echo installation of EarthSiege. 32 Megabytes are necessary.
pause
goto start


:CantCreate
alert Unable to create directory
end



