:start
cd ..\..
godir %1:%4 CantCreate
space %1: 4500 NoMinSpace
rem *** copy files to install destination directory ***
clear
godir %1:%4\data CantCreate
copy %2:data\*.* .
copy %2:install\english\object.str .
copy %2:install\addres.exe .

godir %1:%4\sos CantCreate
copy %2:sos\*.* .
godir %1:%4\sset CantCreate
copy %2:sset\*.* .
godir %1:%4\vol CantCreate
copy %2:vol\simsound.vol .
copy %2:vol\simvoice.vol .
copy %2:install\english\demo.vol .
godir %1:%4\install CantCreate
copy %2:install\*.* .
copy %2:install\hdstuff\*.* .
godir %1:%4 CantCreate
copy %2:stuff\*.* .
copy %2:install\english\resource.cfg .
copy %2:install\english\readme .

clear
rem *** make executable batch file ***
echo @echo off>demo.bat
echo mode co80>>demo.bat
echo set ALT_DRIVE=%1:>>demo.bat
echo set PREFER_ALT=1>>demo.bat
echo %2:>>demo.bat
echo cd \esdemo>>demo.bat
echo escd>>demo.bat
echo %1:>>demo.bat

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

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



