home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
226.INSTALLB.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-10-28
|
5KB
|
129 lines
echo off
REM Multiple Disk install program, part 1, 2 disk version
cls
if "%1" == "" goto DriveNeeded
if %1 == c: goto MakeDirectory
if %1 == C: goto MakeDirectory
if %1 == d: goto MakeDirectory
if %1 == D: goto MakeDirectory
if %1 == e: goto MakeDirectory
if %1 == E: goto MakeDirectory
if %1 == f: goto MakeDirectory
if %1 == F: goto MakeDirectory
if %1 == g: goto MakeDirectory
if %1 == G: goto MakeDirectory
if %1 == h: goto MakeDirectory
if %1 == H: goto MakeDirectory
if %1 == i: goto MakeDirectory
if %1 == I: goto MakeDirectory
if %1 == j: goto MakeDirectory
if %1 == J: goto MakeDirectory
if %1 == k: goto MakeDirectory
if %1 == K: goto MakeDirectory
if %1 == l: goto MakeDirectory
if %1 == L: goto MakeDirectory
if %1 == m: goto MakeDirectory
if %1 == M: goto MakeDirectory
if %1 == n: goto MakeDirectory
if %1 == N: goto MakeDirectory
if %1 == o: goto MakeDirectory
if %1 == O: goto MakeDirectory
if %1 == p: goto MakeDirectory
if %1 == P: goto MakeDirectory
:InvalidDrive
echo "%1" is an invalid drive name. Please use the drive's letter
echo followed by a colon:
goto Example
:DriveNeeded
echo Please specify which drive to install demo of "Their Finest Hour" on,
echo for example:
:Example
echo
echo installb c:
goto End
:MakeDirectory
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Demo of ║
echo ║ ║
echo ║ THEIR FINEST HOUR: ║
echo ║ The Battle of Britain (TM) ║
echo ║ ║
echo ║ Hard Disk Install Utility ║
echo ║ ║
echo ║ ║
echo ║ This program will install all "Their Finest Hour" files into ║
echo ║ a directory called "BOBDEMO" on drive %1. If you do not wish ║
echo ║ to do this, then press Ctrl-C now. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo
pause
echo
if exist %1\BOBDEMO\*.* goto DirectoryExists
mkdir %1\BOBDEMO
goto CopyFiles
:DirectoryExists
echo WARNING: The directory %1\BOBDEMO already exists. Press Ctrl-C
echo now if you don't want to overwrite the contents of
echo that directory.
echo
pause
echo
:CopyFiles
echo Setting up subdirectories...
mkdir %1\BOBDEMO\SCREENS
mkdir %1\BOBDEMO\PI
echo Copying files to %1\BOBDEMO...
copy demo.exe %1\BOBDEMO > NUL
copy readme.bat %1\BOBDEMO > NUL
copy read.me %1\BOBDEMO > NUL
copy sfx.sfx %1\BOBDEMO > NUL
copy adlibsfx %1\BOBDEMO > NUL
copy *.pac %1\BOBDEMO > NUL
copy gmat.gob %1\BOBDEMO > NUL
copy gobs.gob %1\BOBDEMO > NUL
copy *.rpy %1\BOBDEMO > NUL
copy readme.bat %1\SWDEMO > NUL
copy read.me %1\SWDEMO > NUL
if not exist %1\BOBDEMO\demo.exe goto InstallError
if not exist %1\BOBDEMO\wtrfx1s.pac goto InstallError
copy pi\*.* %1\BOBDEMO\PI > NUL
copy screens\*.* %1\BOBDEMO\SCREENS > NUL
if not exist %1\BOBDEMO\SCREENS\BBPARTS.PAC goto InstallError
%1
cd \bobdemo
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Demo of ║
echo ║ ║
echo ║ "Their Finest Hour" has been successfully installed onto your ║
echo ║ hard disk. ║
echo ║ ║
echo ║ To run the demo of "Their Finest Hour", enter CD \BOBDEMO ║
echo ║ then enter DEMO ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto End
:InstallError
echo ERROR: Installation of "Their Finest Hour" into %1\BOBDEMO was unsuccessful.
echo This might be because your hard disk is full. "Their Finest Hour"
echo demo needs at least 720K of free disk space.
:End
echo