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
echo pause >> %1:sq1vga.bat

goto exit

:installReg

echo on

echo Setting up configuration

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

echo %3 > resource.cfg
echo @echo off > %1:sq1vga.bat
echo %2: >> %1:sq1vga.bat
echo cd \sq1vga >>%1:sq1vga.bat
echo scidhuv %1:%4\resource.cfg >> %1:sq1vga.bat
echo %1: >> %1:sq1vga.bat
echo cd .. >>%1:sq1vga.bat
echo pause >> %1: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


