echo The game is ready to install
echo
echo Would you like to (I)nstall  or (E)xit?
pick ie large Exit2


:large
clear
space %1: 4300	NoSpace
godir %1:%4	CantCreate

rem	Copy over the necessary files.
echo Copying Startup Files ...
copy %2:*.drv
copy %2:sierra.exe
copy %2:interp.err
copy %2:version
copy %2:resource.cfg 
copy %2:install.exe
copy %2:install.hlp
copy %2:install.txt
copy %2:sierra.bat 
copy %2:readme
copy %2:*.map
if exist %2:*.scr copy %2:*.scr
if exist %2:*.hep copy %2:*.hep
if exist %2:*.tex copy %2:*.tex
if exist %2:*.msg copy %2:*.msg
rem if exist %2:*.voc copy %2:*.voc
rem if exist %2:*.fon copy %2:*.fon
if exist %2:*.snd copy %2:*.snd
if exist %2:*.v56 copy %2:*.v56
copy %2:brain2.bat ..\.
copy %2:brain2h.bat brain2.bat


echo %3 > resource.cfg
if exist resource.000 del resource.000
if exist resource.aud del resource.aud
echo Copying Game files...
exists %2:resource.p01 Please insert the disk labeled "Disk 1" in drive %2:.
copy resource.000 + %2:resource.p01
exists %2:resource.p02 Please insert the disk labeled "Disk 2" in drive %2:.
copy resource.000 + %2:resource.p02
copy resource.aud + %2:resource.a01
exists %2:resource.a02 Please insert the disk labeled "Disk 3" in drive %2:.
copy resource.aud + %2:resource.a02

:exit
clear
echo
echo ˙To play NOW:
echo ˙   Type sierra [ENTER].
echo
echo ˙To play LATER:
echo ˙   From the SIERRA directory of %1:,
echo ˙   Type brain2 and press [ENTER].
echo
pause
goto Exit2


:NoSpace
clear
echo
echo There is not enough space on %1: to install Brain2!
rem determine which message to bring up.
echo
echo 4.3 megabytes of disk space are necessary to install
echo The Island of Dr. Brain.  You need to free up more 
echo space on your hard drive.
echo
pause
end


:Exit2
end


:CantCreate
alert Unable to create directory %1:%4
end



