clear
godir %1:%4 CantCreate

clear
echo 
echo At this point, most games will say something like,
echo "Now would be a good time to fill out your warranty
echo card."
echo 
echo However, Quest For Glory: Shadows of Darkness has
echo been programmed in "Warranty-O-Rama," a new 
echo language that autodetects whether or not you've
echo filled out and sent in your warranty card.  If you
echo haven't, the game may exhibit strange behavior and 
echo do bizarre things to your hard drive.
echo 
echo We're probably kidding, but why take the risk?
echo
echo Copying Game Files...

echo @echo off   > ..\shadows.bat
echo cd %4      >> ..\shadows.bat
echo sierra     >> ..\shadows.bat
echo cd..       >> ..\shadows.bat

echo @echo off   > shadows.bat
echo sierra     >> shadows.bat

copy %2:\both\readme.bat        /s
copy %2:\dosonly\install.exe    /s
%2:sierra -o .\ >nul
copy %2:\dosonly\install.txt    /s
copy %2:\dosonly\install.hlp    /s
echo %3 > resource.cfg
copy %2:\dosonly\*.drv          /s
copy %2:\both\*.*               /s 

clear
exists %2:\disk2 Please insert the disk labeled "Disk 2" in drive %2:.
clear
echo One down, eight to go.
echo 
echo We get cards and letters every day asking us,
echo "Can you still enjoy 'Quest For Glory: Shadows of
echo Darkness' even if you haven't played any of the 
echo previous Quest For Glory games?"
echo
echo Yes, WE can.  Oh, all right.  Actually, so can YOU!
echo 
echo Seriously:  No previous experience with Quest for 
echo Glory is required to play this or any other game
echo in the series. 
echo
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk3 Please insert the disk labeled "Disk 3" in drive %2:.
clear
echo Two down, seven to go.
echo 
echo Oh, and speaking of other games in the series, it
echo would be tacky in the extreme for us to take this
echo opportunity to tell you about the groundbreaking 
echo Quest for Glory 1: So You Want To Be A Hero, the  
echo award-winning Quest for Glory 2: Trial By Fire, and
echo the breathtaking Quest for Glory 3: Seekers of the 
echo Lost City.
echo 
echo So rather than be obnoxious, we just won't say a
echo word.  (But you WILL love these games!)
echo
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk4 Please insert the disk labeled "Disk 4" in drive %2:.
clear
echo Three down, six to go.
echo 
echo Our Customer Service Department once got a phone call
echo from somebody who said that their game wouldn't install
echo properly.  Turns out when they read in the manual,
echo "place the floppy disk in Drive A:," they thought
echo it meant to remove the actual magnetic disk from 
echo its plastic sleeve and put THAT in the drive.
echo Needless to say, they mangled the disks pretty 
echo severely.  True story.
echo 
echo So the moral is: don't do that.  Thank you.
echo
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk5 Please insert the disk labeled "Disk 5" in drive %2:.
clear
echo Four down, five to go.
echo 
echo We also got a letter once from somebody whose
echo install program seemed to stop after the second or
echo third disk.  Turns out they didn't realize that
echo after Disk #1 finished installing, they were supposed
echo to REMOVE it before putting Disk #2 in.  So they kept
echo putting more and more disks in the drive.  This
echo caused a wee bit of damage to both the disks and the
echo drive, as you might expect.
echo                                      
echo So don't do that either.  Thank you.
echo
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk6 Please insert the disk labeled "Disk 6" in drive %2:.
clear
echo Five down, four to go.
echo 
echo We should mention that even in the extreme examples
echo of Installation Horror we've just cited, our
echo highly-trained Customer Service staff had these
echo problems identified and solved quickly and
echo cleanly.  If you encounter any problems in the
echo installing or running of this program, we're here
echo to help.  At Sierra On-Line, you don't just buy our
echo games, you buy the support of the entire company.
echo
echo Now doesn't that give you a warm fuzzy feeling?
echo
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk7 Please insert the disk labeled "Disk 7" in drive %2:.
clear
echo Six down, only three to go.
echo 
echo When fully installed, this game will take up
echo approximately 15 megabytes of hard drive space,
echo including the digitized sound files.  Yet all this code
echo was packed onto only 9 diskettes.  You figure it out.
echo 
echo Basically, you're getting more byte for your gaming
echo buck than with other leading computer adventure/RPGs.
echo And unlike those other brands, Sierra games do not
echo cause itching, flaking, scaling, or painful burning
echo sensations (except perhaps for Leisure Suit Larry).
echo
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk8 Please insert the disk labeled "Disk 8" in drive %2:.
clear
echo Seven down, two more to go.
echo 
echo Check to make sure your game box came packed with
echo all these items:  Nine diskettes, a Sierra Game
echo Manual, the Shadows of Darkness Technical Guide,
echo the special Halloween issue of "Hero," and numerous
echo flyers and brochures from our favorite purveyors
echo of other fine computer-game-related products.
echo 
echo Now, if you really read quickly, you can get
echo through all that before you need to put in the
echo next disk.  Yeah, right.  Anyway, at least we
echo made sure you got your money's worth.
echo
copy resource.000 + %2:\both\resource.000

clear
exists %2:\disk9 Please insert the disk labeled "Disk 9" in drive %2:.
clear
echo Eight down.  This is the last disk!
echo 
echo It's been a pleasure installing this game with you.
echo In this short time that we've been setting up your
echo game, we feel like we've really gotten to know you,
echo especially since we've been glancing through all the
echo files on your hard drive.  Nice poetry in your word
echo processor subdirectory, by the way!
echo 
echo Incidentally, maybe we should've mentioned it sooner,
echo but you have a small piece of parsley or seaweed or
echo something stuck between your teeth.
echo
echo
copy resource.000 + %2:\both\resource.000

clear
echo Unpack the Sample Resource? 
echo 
echo  "Yes" and decompress Digitized Sound Effects.
echo 
echo OR
echo
echo  "No"  and miss out on all those cool samples. 
echo 
echo You really should answer "Yes" if you have a
echo SoundBlaster, SoundBlaster Pro, Pro Audio Spectrum,
echo PAS 16, Thunderboard or any sound card that supports
echo digitized samples.
echo
echo
echo Would you like to unpack samples? (Y/N)
PICK yn yes exit

:yes
clear
exists %2:\disk9 Please insert the disk labeled "Disk 9" in drive %2:.
clear
echo
echo You sure fooled us.  We thought we were all done.
echo Now you say you want digitized samples, too.  (sigh)
echo 
echo There's just no satisfying some people!
echo 
echo 
echo 
echo 
echo 
echo 
echo
echo
echo
echo
echo Decompressing Audio Files...
%2:\auddcomp .\ %2:\both >nul

:exit
clear
echo
echo Installation Complete!
echo 
echo To run Shadows of Darkness now:
echo   Type Shadows [ENTER]
echo 
echo To play later:
echo     From the directory of %1:%4,
echo   Type Shadows [ENTER]
echo 
echo 
echo 
echo 
echo
echo
pause

:Exit2
end

:CantCreate
alert Cannot create directory %1:%4.
end
