clear

echo You may, if you wish, install the game to your hard
echo drive. This will require approximately 6 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: 6000 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:sq1vga.bat
copy %2:sq1gmpat
copy %2:sierra.*
copy %2:interp.*
copy %2:scidhuv.*
echo %3 > resource.cfg

clear
copy %2:*.v56  
copy %2:*.map  
copy %2:resource.000
copy %2:resource.001
copy %2:resource.002
copy %2:resource.003
copy %2:resource.004

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

goto exit

:installReg

echo on

echo Setting up configuration

space %1: 1 NoSpaceBig
godir %1:%4 CantCreate

echo %3 > resource.cfg
copy %2:install.* 
copy %2:*.drv
copy %2:sq1vga.bat
echo set sdrive=%2:>> sq1vga.BAT 
echo set sdir=%2:\sq1vga>> sq1vga.BAT 
echo set ddrive=%1:>> sq1vga.BAT 
echo set ddir=%1:%4\>> sq1vga.BAT 
echo set dgame=sq1vga>> sq1vga.BAT 
echo GOTO checkCD>> sq1vga.BAT 
echo :end>> sq1vga.BAT 
echo %1:>> sq1vga.BAT 
echo set sdrive=>> sq1vga.BAT 
echo set sdir=>> sq1vga.BAT 
echo set ddrive=>> sq1vga.BAT 
echo set dgame=>> sq1vga.BAT 
echo set ddir=>> sq1vga.BAT 

:exit

clear
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 1 now:
echo   Type SQ1VGA [ENTER]
echo
echo To play later:
echo   Change directory to %1:%4,
echo   and type SQ1VGA [ENTER]
echo
echo

pause
goto Exit2


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

:Exit2
end

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


