clear

rem :Choose
rem		For Space Quest 5
echo You may, if you wish, install the game to your hard
echo drive. This will require approximately 8.5 megabytes 
echo of free space on your hard disk, but the game will 
echo probably play faster and smoother.
echo 
echo Do you wish to install everything
echo to your hard drive (y/n)?
pick yn installHD installReg



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

clear
echo Copying Files ...

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

clear
copy %2:*.scr  
copy %2:*.hep  
copy %2:*.tex  
rem copy %2:*.voc  
copy %2:*.v56  
copy %2:*.p56  
copy %2:*.msg  
copy %2:*.map  
copy %2:*.err  
copy %2:*.aud  
copy %2:*.fon  
copy %2:sierra.*  
copy %2:resource.000

echo %3 > resource.cfg
echo @echo off > %1:sq5.bat
echo sierra >> %1:sq5.bat
echo pause >> %1:sq5.bat

goto exit

:installReg
space %1: 1 NoSpaceBig
godir %1:%4 CantCreate
rem echo Installing to hard drive...
rem echo Copying Startup Files...
echo %3 > resource.cfg
echo @echo off > %1:sq5.bat
echo %2: >> %1:sq5.bat
echo cd \sq5 >>%1:sq5.bat
echo sierra %1:%4\resource.cfg >> %1:sq5.bat
echo %1: >> %1:sq5.bat
echo pause >> %1:sq5.bat


:exit

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


