space %1: 10240 NoSpace
godir %1:%4 CantCreate

echo Copying files...
copy %2:version
copy %2:sierra.exe
copy %2:interp.err
copy %2:resource.map
copy %2:install.*
copy %2:*.drv
copy %2:readme
echo Copying game resources
echo (this will take a while!)...
copy %2:resource.000
copy %2:resource.sfx
echo Copying game patches...
copy %2:*.msg
copy %2:*.scr
copy %2:*.hep
copy %2:*.snd

echo @echo off > ..\LSL6.bat
echo cd %4   >> ..\LSL6.bat
echo sierra  >> ..\LSL6.bat
echo cd ..   >> ..\LSL6.bat

echo @echo off > readme.bat
echo type readme | more >> readme.bat

echo sierra   > LSL6.bat

echo %3 > resource.cfg
echo mouseDrv=yes >> resource.cfg
rem kludgy, but last minute fix

:exit
clear
echo
echo To play the game, change to the directory
echo    %1:%4, and type LSL6.
echo
echo
pause
goto Exit2


:NoSpace
clear
echo
echo There is not enough space on %1: to install Larry 6.
echo You need 10.5 megabytes of free disk space.
echo
echo Come on, delete that word processor!  Trash that
echo spreadsheet!  Free up some hard disk space.
echo
echo IT'S WORTH IT!!
echo
echo
pause
goto Exit2


:CantCreate
alert Unable to create directory %1:%4.
goto Exit2

:Exit2
%2:
cd %2:\
end
