:start
clear

echo
echo             Music Quality
echo
echo Give us ALL your hard drive! Now!! 
echo The more we take, the better we sound! 
echo For highest CD-quality music, choose "Large." 
echo For not really too terrible-sounding music, 
echo choose "Small."
echo
echo 1) Large  = 93 Megs (For Real Swingers Only!)
echo 2) Small  = 25 Megs (For Those With Inadequate Size)
echo 3) Exit and cancel installation
echo
echo Please choose 1, 2, or 3
pick 123 large small quit

:large
space %1: 63000 nospaceL

REM Create the DOS game directory
godir %1:%4 cantcreate

REM Copy over music files
echo Copying music files to %1:%4\music ...
godir %1:%4\music cantcreate

copy %2:..\music\22s16\2*.aud
copy %2:..\music\22s16\3*.aud

space %1: 62000 nospaceD

copy %2:..\music\22s16\1*.aud
copy %2:..\music\22s16\4*.aud
copy %2:..\music\22s16\5*.aud

goto done

:small
space %1: 25000 nospaceS

REM Create the DOS game directory
godir %1:%4 cantcreate

REM Copy over music files
echo Copying music files to %1:%4\music ...
godir %1:%4\music cantcreate
copy %2:..\music\22m8\*.aud

:done

REM Copy over drivers (wink, wink, nudge, nudge)
godir %1:%4\drivers cantcreate
copy %2:..\drivers\*.drv

REM Go back to DOS game directory
godir %1:%4 cantcreate

REM Copy starting Windows wallpaper
copy %2:..\w*.bmp %1:

echo Copying files to %1:%4 ...

copy %2:..\sier.exe %1:
copy %2:l7check.bat %1:checkcd.bat
copy %2:vesatest.exe %1:
copy %2:install.exe %1:
copy %2:install.scr %1:
copy %2:install.txt %1:
copy %2:install.hlp %1:
copy %2:*.drv %1:
rem copy %2:*.chk %1:
copy %2:..\version %1:
copy %2:..\sierra.err %1:

REM Create resource.cfg
echo %3 >resource.cfg

clear
echo audio=%1:%4\music >>resource.cfg
echo resSfx=%2:\ >>resource.cfg
echo resAud=%2:\ >>resource.cfg
echo resMap=%2:\ >>resource.cfg
echo patchDir=%1:%4; %2:\patches\ >>resource.cfg
echo movieDir=%2:\movie >>resource.cfg
REM echo audiosize=62k >>resource.cfg
REM echo dacsize=30720 >>resource.cfg

clear

REM BATCH FILE TO RUN GAME FROM SIERRA DIRECTORY
echo @echo off >..\lsl7dos.bat
echo cd %4 >>..\lsl7dos.bat
echo call CheckCD   %2 >>..\lsl7dos.bat
echo call vesatest >>..\lsl7dos.bat
echo if errorlevel 0 goto vesafound >>..\lsl7dos.bat
echo echo A VESA driver was not found on your system. Please rerun install >>..\lsl7dos.bat
echo echo and check the readme file for help on installing a VESA driver. >>..\lsl7dos.bat
echo goto end >>..\lsl7dos.bat
echo :vesafound >>..\lsl7dos.bat
echo %1:%4\sier %1:%4\resource.cfg >>..\lsl7dos.bat
echo :end >> ..\lsl7dos.bat
echo cd .. >>..\lsl7dos.bat

REM BATCH FILE TO RUN GAME FROM GAME DIRECTORY
echo @echo off >lsl7dos.bat
echo call CheckCD   %2 >>lsl7dos.bat
echo call vesatest >>lsl7dos.bat
echo if errorlevel 0 goto vesafound >>lsl7dos.bat
echo echo A VESA driver was not found on your system. Please rerun install >>lsl7dos.bat
echo echo and check the readme file for help on installing a VESA driver. >>lsl7dos.bat
echo goto end >>lsl7dos.bat
echo :vesafound >>lsl7dos.bat
echo %1:%4\sier %1:%4\resource.cfg >>lsl7dos.bat
echo :end >>lsl7dos.bat
echo cd .. >>lsl7dos.bat

cls
echo
echo To play Leisure Suit Larry "Love For Sail!" change 
echo to %1:%4 and type "LSL7dos"
echo 
echo Here's how to do that. At the DOS prompt, type the
echo following commands: 
echo      %1: [ENTER]
echo      cd %4 [ENTER]
echo      LSL7dos [ENTER]
pause
goto quit

:cantcreate
alert Unable to create directory %1:%4
pause
goto quit

REM Delete files copied so far
:nospaceD
del %1:%4\music\*.*

:nospaceL
cls
echo
echo                    What a wuss!
echo
echo You don't have enough free space on your hard drive 
echo for the "Large Music" version. You DO have enough 
echo space for the "Small Music" version.  So, you can 
echo wimp out and install the "Small Music" version OR you
echo can	go free up 93 megabytes and try again.
echo
echo (Here's an idea, try bumping some of that Internet
echo pornography you've been hiding.) 
echo 
pause
goto quit

:nospaceS
cls
echo
echo                   What a wuss!
echo
echo You don't have enough free space on your hard drive 
echo for even the "Small Music" version of "Love For Sail!" 
echo 
echo Erase a little of that Internet pornography you've been 
echo hiding. When you've got at least 25 megs free, re-run 
echo Install. Or, better still, clean up 93 megs and install
echo the "Large Music" version. Unless...you're a wimp!

echo
pause

:quit
end

