echo Setting up the directory for "The Shadow of Yserbius"
godir %1:%6\YSERBIUS CantYSERBIUS
godir %1:%6\YSERBIUS\SAVE CantYSERBIUS
echo Saving any existing character data files to %1:%6\YSERBIUS\SAVE...
copy ..\mychars.dat /q
copy ..\automaps.dat /q
godir %1:%6\YSERBIUS CantYSERBIUS
del *.*

rem Is there space?
space %1: 9400 NoSpace
if errorlevel 1 goto NoSpace

echo Copying Yserbius Files...
defuse %2 %1 part %6

alert Please enter the TSN Start-Up Kit Disk 1
exists %2:modem.drv Please enter the TSN Start-Up Kit Disk 1
cd ..
echo Copying Yserbius Files from TSN Start-Up Kit
defuse %2 %1 part %6 YSERBIUS

godir %1:%6\YSERBIUS CantYSERBIUS
echo UnCompressing "The Shadow of Yserbius"
puff /D _*.*
copy save\*.dat /q

if exist %1:%6\tsn.prg goto YesTSN

echo %3>..\lsci.cfg

:YesTSN
echo @echo off>..\yserbius.bat
echo cd yserbius>>..\yserbius.bat
echo yserbius>>..\yserbius.bat

copy %2:\YSPatch\*.* /q
if exist _*.* puff /D _*.*

cls
echo Installation complete.
echo 
echo 
echo Type "cd %6\YSERBIUS"
echo      "YSERBIUS"
echo   to run The Shadow of Yserbius
echo 
pause
cd..
end

:NoSpace
cls
echo There is not enough space on %1: to install Yserbius
echo 9.4 Megabytes are required. Delete some unused files.
pause
end

:CantYSERBIUS
Alert Unable to create %1:%6\YSERBIUS
end

