
rem %1 is destination drive with no :
rem %2 is installation source drive
rem %3 is new contents of RESOURCE.CFG
rem %4 is destination directory
rem %5 is language directory (install text)
rem %6 is install size (BIG or SMALL)

clear
godir %1:%4 CantCreate
goto %6_install
exit

rem ** Small Install
:SMALL_install
echo @if exist %2:\tim2.exe %2: >tim2.bat
echo @if exist %2:\tim2.exe %2:\tim2 %1:%4\resource.cfg >>tim2.bat
echo @%1: >>tim2.bat
echo @if not exist %2:\tim2.exe echo You must place the CD that contains TIM 2 in your drive first. >>tim2.bat
echo @if exist %2:\~~~inst.exe %2: >install.bat
echo @if exist %2:\~~~inst.exe set language=English>>install.bat
echo @if exist %2:\~~~inst.exe %2:\~~~inst %1:%4\resource.cfg >>install.bat
echo @set language=>>install.bat
echo @%1: >>install.bat
echo @if not exist %2:\~~~inst.exe echo You must place the CD that contains TIM 2 in your drive first. >>install.bat
echo %3 >resource.cfg
goto done

rem ** Big Install
:BIG_install
exists %2:RESOURCE.001 Please insert the disk labeled "Disk 1" in drive %2:.
echo Copying Game files...
copy %2:~~~inst.exe install.exe
copy %2:%5install.hlp
copy %2:%5install.txt
copy %2:*.drv
echo %3 >resource.cfg
copy %2:resource.001
copy %2:resource.map
copy %2:*.dat
copy %2:tim2.exe
goto done

:done
echo Language = English >>resource.cfg

clear
echo
echo ˙To play NOW:
echo ˙   Type TIM2 and press [ENTER].
echo
echo ˙To play LATER:
echo     Type %1: and press [ENTER]
echo ˙   Then type CD %4 and press [ENTER]
echo ˙   Then type TIM2 and press [ENTER].
echo
echo  OR Place Easy Start disk in the
echo     drive and type CTRL+ALT_DEL.
echo
pause
end

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

:exit
end


