clear
echo The install program will now copy part or
echo all of Betrayal At Krondor to your hard drive.
echo If you choose only a partial install music will
echo play only through your selected sound card.  If
echo you choose full install you will have the option
echo of hearing CD quailty music or standard soundcard
echo music.
echo Approximate hard drive space required for full
echo install:  15 Megs
echo For partial install:  2.6 Meg(s)
echo
echo Do you wish a (F)ull or (P)artial install?
pick fp Full Partial

:Full
clear
space %1: 15000 NoSpace
%1:
godir %4 CantCreate

echo Copying Game files (Full install)...

copy %2:adl.drv
copy %2:genmidi.drv
copy %2:mt32.drv
copy %2:sndblast.drv
copy %2:std.drv
copy %2:vmcode.ovl
copy %2:sx.ovl
copy %2:frp.sx
copy %2:startup.gam
copy %2:resource.cfg
copy %2:install.exe
copy %2:install.hlp
copy %2:install.scr
copy %2:install.txt
copy %2:readme
copy %2:readme.bat
copy %2:krondor.rmf
copy %2:krondor.nhb
copy %2:krondor.001
echo %1 >drive.cfg
echo %2 >>drive.cfg
echo %3 >resource.cfg
del krondor.exe > nul
rename krondor.nhb krondor.exe
goto done

:Partial
clear
clear
space %1: 2600 NoSpace
%1:
godir %4 CantCreate

echo Copying Game files (Partial install)...

copy %2:README
copy %2:README.BAT
copy %2:ADL.DRV
copy %2:GENMIDI.DRV
copy %2:MT32.DRV
copy %2:SNDBLAST.DRV
copy %2:STD.DRV
copy %2:INSTALL.EXE
copy %2:KRONDOR.nhb
copy %2:STARTUP.GAM
copy %2:INSTALL.HLP
copy %2:SX.OVL
copy %2:VMCODE.OVL
copy %2:INSTALL.SCR
copy %2:FRP.SX
copy %2:INSTALL.TXT
copy %2:resource.cfg
del krondor.exe > nul
rename krondor.nhb krondor.exe

echo %2 >drive.cfg
echo %1 >>drive.cfg
echo %3 >resource.cfg

:Done
clear
echo
echo ˙To play NOW:
echo ˙   Type KRONDOR and press [ENTER].
echo
echo ˙To play LATER:
echo ˙   From the root directory of %1:
echo ˙   Type CD %4 and press [ENTER], then
echo ˙   Type KRONDOR and press [ENTER].
echo
pause
end

:NoSpace
clear
echo
alert There is not enough space on %1: to install Betrayal At Krondor on your hard drive.  15 Megabytes of disk space are necessary for a full install, 2.6 Megabytes for a partial install.
end

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

:ERR1
alert Unable to read resource file.  Make sure the drive door is shut and run install again.
end
:ERR2
alert Unable to write resource file to hard drive.  This program only installs games on hard drives.  Run install again.  If you get this message again you may have a problem with your hard drive.
end
:ERR3
alert Not enough memory to run extraction program.  The extraction program needs a minimum of 550k to operate.
end
:ERR4
alert The resource file is bad.  Run install again.  If you get this message again, you probably received a bad disk.
end
:ERR5
alert Unable to open the resource file for reading.  A possible solution might be to increase the value of the FILES setting in your CONFIG.SYS file.
end
:ERR6
alert Unable to open the target file for writing.  A possible solution might be to increase the value of the FILES setting in your CONFIG.SYS file.
end

:exit
end
