clear

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

if exist resource.000 del resource.000
if exist resource.aud del resource.aud

echo
echo 
echo 
echo Now would be a good time to fill out your
echo Sierra On-Line warranty card.  By sending this
echo card in, you provide us with valuable information
echo that we can use in an elaborate blackmail scheme 
echo we're busy masterminding.  Nyah-ha-ha!
echo
echo
echo
echo
echo
echo
echo Copying Startup Files ...

rem Copy over the necessary files.
copy %2:\dosonly\*.*       /s
copy %2:\both\*.*          /s
copy %2:\readme.bat        /s

if exist %2:\dosonly\sciv.exe echo @sciv > sierra.bat
if exist %2:\dosonly\beta.exe echo @beta > sierra.bat

echo echo off>..\FPFP.bat
echo cd %4>>..\FPFP.bat
echo sierra>>..\FPFP.bat

echo echo off>readme.bat
echo type read.me|more>>readme.bat

echo %3 > resource.cfg

clear
exists %2:\disk2 Please insert the disk labeled "Disk 2" in drive %2:.
clear
echo
echo
echo
echo Now would be a good time to pull out your
echo "Modern Day Book of Health and Hygiene" book and start
echo boning up on turn-of-the-century medical terms.
echo Hey, speaking of which, remember books?  People used
echo to read them.  They provided entertainment and
echo information.  This was back before "Pong."
echo 
echo Try one someday.  You might like it.
echo
echo
echo
echo Adding %2:\both\resource.000 to resource.000...
copy %2:\both\resource.000 /s

clear
exists %2:\disk3 Please insert the disk labeled "Disk 3" in drive %2:.
clear
echo
echo
echo
echo Now would be a good time to go through your closet
echo and pick out a few useable items of clothing to give
echo away.  C'mon, you can afford it.  You just bought a
echo frivolous piece of entertainment software for your
echo expensive computer.  Besides, you need the closet
echo space.
echo
echo
echo
echo
echo
copy resource.000 + %2:\both\resource.000 /s

clear
exists %2:\disk4 Please insert the disk labeled "Disk 4" in drive %2:.
clear
echo
echo
echo
echo Now would be a good time to quit that bad habit
echo you've had since childhood, the one you think
echo nobody knows about.  Well, that's what you think. 
echo We've seen you do it, and frankly, we're disgusted.
echo Just because you're in your car doesn't mean you're
echo invisible.
echo
echo So while we install this disk, clean up your act, hey?
echo
echo
echo
copy resource.000 + %2:\both\resource.000 /s

clear
exists %2:\disk5 Please insert the disk labeled "Disk 5" in drive %2:.
clear
echo
echo
echo
echo Now would be a good time to freak out a little bit.
echo Could you really afford this game?  Do you really
echo have the time to play it?  Didn't you just have to
echo wipe something IMPORTANT off your hard drive to make
echo room for it?  What about the unpaid bill for that
echo sound card?  What about that extra memory you bought??
echo WHAT HAVE YOU DONE???
echo
echo
echo
echo
copy resource.000 + %2:\both\resource.000 /s

clear
echo
echo Now is the time to make your choice.  You can 
echo answer "Yes" and decompress a total of 5 megabytes
echo of incredible Real Western Digitized Sound Effects
echo that took us decades to produce. Or you could answer  
echo "No" and save your disk space for some cruddy greeting 
echo card utility.
echo 
echo You really should answer "Yes" if you have a Sound- 
echo Blaster, SoundBlaster Pro, Pro Audio Spectrum, PAS 16, 
echo IBM PS/1, Thunderboard, Disney Sound Source, or any 
echo sound card that supports digitized samples.
echo
echo
echo Shall we proceed?  Would you like to use samples?
PICK yn yes exit

:yes
clear
exists %2:\disk6 Please insert the disk labeled "Disk 6" in drive %2:.
clear
echo
echo
echo
echo We are now going to decompress the audio files.  While
echo this goes on, we recommend you put your head down on
echo the desk for a few minutes.
echo
echo Then it'll be milk time.
echo
echo
echo
echo
echo
echo
echo Decompressing Audio Files ...
%2:\auddcomp .\ %2:\both > NUL

:exit
clear
echo
echo
echo
echo Voila!  The game, she is installed!  We STRONGLY
echo recommend you read the README file.  It DOES
echo contain important information.  Would we lie to you?
echo 
echo
echo To play:
echo    From the directory of %1:%4,
echo    Type FPFP and press [ENTER].
echo
echo
echo
pause
goto Exit2

:NoSpace
clear
echo
echo There is not enough space on %1: to install FPFP!
echo 11.0 megabytes of disk space are necessary to perform the install,
echo after which only 6.0 megabytes will be needed.
echo
pause

:Exit2
end

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