clear
space %1: 8500 NoSpace
godir %1:%4 CantCreate

clear
echo Copying Files ...

copy %2:\copydir\version 
copy %2:\copydir\install.* 
copy %2:\copydir\*.drv
copy %2:\copydir\resource.cfg
copy %2:\copydir\readme
copy %2:\copydir\sq5.bat
echo %3 > resource.cfg

clear
echo.
echo EXTRACTING LANGUAGE FILES 
echo Please Wait...
if exist %2:\copydir\language.exe %2:\copydir\language.exe -o > null 
rem check and copy any late patches
if exist %2:\copydir\*.scr copy %2:\copydir\*.scr  
if exist %2:\copydir\*.hep copy %2:\copydir\*.hep  
if exist %2:\copydir\*.tex copy %2:\copydir\*.tex  
if exist %2:\copydir\*.voc copy %2:\copydir\*.voc  
if exist %2:\copydir\*.v56 copy %2:\copydir\*.v56  
if exist %2:\copydir\*.p56 copy %2:\copydir\*.p56  
if exist %2:\copydir\*.msg copy %2:\copydir\*.msg  
if exist resource.000 del resource.000
copy %2:\copydir\resource.000 resource.000 


rem clear
rem exists %2:\disk2 Please insert the disk labeled "Disk 2" in drive %2:.
copy resource.000 + %2:\copydir\resource.001

rem clear
rem exists %2:\disk3 Please insert the disk labeled "Disk 3" in drive %2:.
copy resource.000 + %2:\copydir\resource.002  

rem clear
rem exists %2:\disk4 Please insert the disk labeled "Disk 4" in drive %2:.
copy resource.000 + %2:\copydir\resource.003  

rem clear
rem exists %2:\disk5 Please insert the disk labeled "Disk 5" in drive %2:.
copy resource.000 + %2:\copydir\resource.004  
clear
echo EXTRACTING UTILITIES. PLEASE WAIT...
if exist %2:\copydir\utility.exe %2:\copydir\utility.exe -o > null 

rem clear
rem exists %2:\disk6 Please insert the disk labeled "Disk 6" in drive %2:.
rem copy resource.000 + %2:\copydir\resource.005  

clear
echo
echo Please read the README file for the latest game
echo updates and system changes, especially if you are
echo installing Space Quest 5 on a system running
echo under STACKER or SUPERSTOR. 
echo
echo
echo To view the README file, re-run the install program
echo from your	%1:%4 directory and select the
echo "View documentation update in README file"	option
echo from the install menu.
echo
pause
clear
echo
echo
echo To play Space Quest 5 now:
echo   Type SQ5 [ENTER]
echo
echo To play later:
echo   Change directory to %1:%4,
echo   and type SQ5 [ENTER]
echo
echo
echo Have fun and thank you for purchasing Space Quest 5!
echo
echo

pause
goto Exit2


:NoSpace
clear
echo
echo You do not have enough disk space on %1
echo to install Space Quest V!
echo 8.5 megabytes of hard disk space are required.
echo
pause

:Exit2
end

:CantCreate
alert Cannot create directory %1:%4.
end

