clear
space %1: 8000 NoSpace
godir %1:%4 CantCreate

echo Copying Startup Files ...
copy %2:\version
copy %2:\dosonly\*.*
copy %2:\both\*.*

rem  Create batch files on the fly and copy it to the root dir
rem if exist %2:\dosonly\sciv.exe echo sciv > sierra.bat
rem if exist %2:\dosonly\beta.exe echo beta > sierra.bat
rem if exist %2:\dosonly\sierra.exe echo sierra > sierra.bat
rem echo cd %4 > slater.bat
rem echo call sierra >> slater.bat
copy %2:..\go.bat %1:

echo %3 > resource.cfg

echo Copying Game files...

exists %2:\disk2 Please insert the disk labeled "Disk 2" in drive %2:.
copy resource.000 + %2:\both\resource.000

exists %2:\disk3 Please insert the disk labeled "Disk 3" in drive %2:.
copy resource.000 + %2:\both\resource.000

echo Please wait - decompressing audio.
echo This should take a few minutes.
%2:\auddcomp .\ %2:\both > nul
rem %2:\auddcomp .\ %2:\both -d

if ERRORLEVEL 1 goto AudError

rem  copy debug script if it's there
if exist %2:98.* copy %2:98.*

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


:NoSpace
clear
echo
echo There is not enough space on %1: to install 
echo        Slater and Charlie
echo 8.0 megabytes of disk space are necessary.
echo
pause


:Exit2
end


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

:AudError
Alert AUDIO DECOMPERSSION FAILED!
end


