home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
236.INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-09-19
|
6KB
|
184 lines
echo off
cls
rem --- make sure the user specified valid drive letter (we allow A to H)
rem for both the source and dest drives.
if %1a == a goto noDriveSpecified
if %1 == a: goto checkDest
if %1 == A: goto checkDest
if %1 == b: goto checkDest
if %1 == B: goto checkDest
if %1 == c: goto checkDest
if %1 == C: goto checkDest
if %1 == d: goto checkDest
if %1 == D: goto checkDest
if %1 == e: goto checkDest
if %1 == E: goto checkDest
if %1 == f: goto checkDest
if %1 == F: goto checkDest
if %1 == g: goto checkDest
if %1 == G: goto checkDest
if %1 == h: goto checkDest
if %1 == H: goto checkDest
goto notOnThatDrive
:checkDest
if %2a == a goto noDriveSpecified
if %1 == a: goto begin
if %1 == A: goto begin
if %1 == b: goto begin
if %1 == B: goto begin
if %2 == c: goto begin
if %2 == C: goto begin
if %2 == d: goto begin
if %2 == D: goto begin
if %2 == e: goto begin
if %2 == E: goto begin
if %2 == f: goto begin
if %2 == F: goto begin
if %2 == g: goto begin
if %2 == G: goto begin
if %1 == h: goto begin
if %1 == H: goto begin
:begin
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ MADDEN FOOTBALL II DEMO Installation ║
echo ║ ║
echo ║ This will create a directory called %2\MFB2DEMO on your destination ║
echo ║ disk, and will install MADDEN FOOTBALL II DEMO in that directory. ║
echo ║ ║
echo ║ If you don't want to install MADDEN FOOTBALL II DEMO now, press ║
echo ║ Ctrl-Break. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
rem --- create \MFB2DEMO on the current drive.
echo
echo Creating directory %2\MFB2DEMO...
if not exist %2\MFB2DEMO\*.* goto go_on
rem --- \MFB2DEMO dir already exists.
:directoryExists
echo
echo There is already a \MFB2DEMO directory on drive %2. If you don't want to
echo install MADDEN FOOTBALL II DEMO into that directory, press Ctrl-Break.
echo Otherwise, press any key to install MADDEN FOOTBALL II DEMO into
echo %2\MFB2DEMO.
pause
goto go_on2
:go_on
md %2\MFB2DEMO
md %2\MFB2DEMO\GRAPHICS
md %2\MFB2DEMO\GRAPHICS\MISC
md %2\MFB2DEMO\GRAPHICS\STANCES
md %2\MFB2DEMO\GRAPHICS\FALL
md %2\MFB2DEMO\GRAPHICS\GETUP
md %2\MFB2DEMO\GRAPHICS\RUN
md %2\MFB2DEMO\GRAPHICS\PCS
md %2\MFB2DEMO\GRAPHICS\PCX
rem if not exist %2\MFB2DEMO\GRAPHICS\PCX goto error
:go_on2
rem --- make sure source drive contains Disk 1
:1a
if exist %1\mfb2d.exe goto 1b
echo
echo Insert MADDEN FOOTBALL II DEMO Disk in drive %1.
pause
goto 1a
:1b
rem --- copy program disk files, including next batch file, to dest disk.
echo
echo Copying files...
copy %1\*.* %2\MFB2DEMO
if not exist %2\MFB2DEMO\install.bat goto error
if not exist %2\MFB2DEMO\mfb2.msg goto error
if not exist %2\MFB2DEMO\splash.tga goto error
if not exist %2\MFB2DEMO\sounds.tga goto error
if not exist %2\MFB2DEMO\splash.pcx goto error
if not exist %2\MFB2DEMO\mfb2d.exe goto error
if not exist %2\MFB2DEMO\mfb2.cfg goto error
copy %1\GRAPHICS\MISC\*.* %2\MFB2DEMO\GRAPHICS\MISC
if not exist %2\MFB2DEMO\GRAPHICS\MISC\misc.bms goto error
copy %1\GRAPHICS\PCS\*.* %2\MFB2DEMO\GRAPHICS\PCS
if not exist %2\MFB2DEMO\GRAPHICS\PCS\pcs.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\PCS\tra.bms goto error
copy %1\GRAPHICS\RUN\*.* %2\MFB2DEMO\GRAPHICS\RUN
if not exist %2\MFB2DEMO\GRAPHICS\RUN\run0.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\RUN\run1.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\RUN\run2.bms goto error
copy %1\GRAPHICS\GETUP\*.* %2\MFB2DEMO\GRAPHICS\GETUP
if not exist %2\MFB2DEMO\GRAPHICS\GETUP\get0.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\GETUP\get1.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\GETUP\get2.bms goto error
copy %1\GRAPHICS\FALL\*.* %2\MFB2DEMO\GRAPHICS\FALL
if not exist %2\MFB2DEMO\GRAPHICS\FALL\fal0.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\FALL\fal1.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\FALL\fal2.bms goto error
copy %1\GRAPHICS\STANCES\*.* %2\MFB2DEMO\GRAPHICS\STANCES
if not exist %2\MFB2DEMO\GRAPHICS\STANCES\sta20.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\STANCES\sta21.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\STANCES\sta22.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\STANCES\sta30.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\STANCES\sta31.bms goto error
if not exist %2\MFB2DEMO\GRAPHICS\STANCES\sta32.bms goto error
copy %1\GRAPHICS\PCX\*.* %2\MFB2DEMO\GRAPHICS\PCX
if not exist %2\MFB2DEMO\GRAPHICS\PCX\xfield1.pcx goto error
goto installDone
rem --- user didn't specify a drive letter followed by a colon.
:noDriveSpecified
echo
echo Installation Error: To install JOHN MADDEN II DEMO, you must specify the
echo drive containing the floppies that you are installing FROM, and the drive
echo you are installing TO. For example: if you are installing from
echo floppy drive A: to hard drive C:, then you should type
echo INSTALL A: C:
echo ...and press Enter.
goto errorDone
rem --- user specified invalid drive letter.
:notOnThatDrive
echo
echo Installation Error: Each drive letter must be a letter from A to H,
echo and must be followed by a colon. For example, "INSTALL A: C:" will
echo install MADDEN from floppy on drive A: to hard drive C:.
goto errorDone
rem --- installation was successful!
:installDone
cd %2\MFB2DEMO
echo
echo MADDEN FOOTBALL II DEMO is now
echo installed on your destination disk.
echo To run it, type "MFB2D".
echo
echo Type README for instructions on playing
echo the MADDEN FOOTBALL II DEMO.
echo
%2
goto done
rem --- general installation error.
:error
echo
echo Installation Error: Perhaps there isn't enough space on
echo your destination disk. MADDEN FOOTBALL II DEMO requires
echo at least 630,000 byte of free space.
goto errorDone
rem --- goto here after an error is detected, to print a message and exit.
:errorDone
echo MADDEN FOOTBALL II DEMO was not installed correctly.
:done