home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
v
/
voleybal.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-12-20
|
3KB
|
109 lines
echo off
cls
rem --- make sure the user specified valid drive letter (we allow C to F).
if %1a == a goto noDriveSpecified
if %1 == c: goto begin
if %1 == C: goto begin
if %1 == d: goto begin
if %1 == D: goto begin
if %1 == e: goto begin
if %1 == E: goto begin
if %1 == f: goto begin
if %1 == F: goto begin
goto notOnThatDrive
:begin
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ KINGS OF THE BEACH Hard Disk Installation ║
echo ║ ║
echo ║ This will create a directory called %1\VBALL on your hard disk, ║
echo ║ and will install the game in that directory. ║
echo ║ ║
echo ║ If you don't want to install the game now, press Ctrl-Break. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
rem --- create \vball on the current drive.
echo
echo Creating directory %1\VBALL...
if exist %1\vball\*.* goto directoryExists
md %1\vball
rem --- make sure drive contains the program disk.
:1
if exist vball.exe goto 2
echo
echo Insert KINGS OF THE BEACH Disk 1 into drive.
pause
goto 1
:2
rem --- if all files are on one disk, do one-disk install.
if exist regtent.pak goto oneDiskInstall
rem --- copy program disk files, including next batch file, to the hard disk.
echo
echo Copying Game files...
copy *.* %1\vball
if not exist %1\vball\install2.bat goto installationError
rem --- run next batch file
%1\vball\install2 %1
rem --- one-disk install (for 3.5" disk).
:oneDiskInstall
echo
echo Copying Game files...
copy a:*.* %1\vball
if not exist %1\vball\vball.exe goto installationError
rem --- installation was successful!
:installDone
cd %1\vball
echo
echo KINGS OF THE BEACH is now installed on your hard disk.
echo To run it, type "VBALL".
%1
goto done
rem --- user didn't specify a drive letter followed by a colon.
:noDriveSpecified
echo
echo Installation Error: To install KINGS OF THE BEACH on your hard disk, you
echo must specify the drive to install KINGS OF THE BEACH onto. For example,
echo to install KINGS OF THE BEACH on drive C, type "INSTALL C:" and press Enter.
goto errorDone
rem --- user specified invalid drive letter.
:notOnThatDrive
echo
echo Installation Error: The hard drive letter must be a letter from C to F,
echo and must be followed by a colon. For example, "INSTALL C:" will install
echo KINGS OF THE BEACH on drive C.
goto errorDone
rem --- general installation error.
:installationError
echo
echo Installation Error: Perhaps there isn't enough space on your hard disk.
echo KINGS OF THE BEACH installation requires at least 720k free space.
goto errorDone
rem --- \VBALL dir already exists.
:directoryExists
echo
echo Installation Error: The \VBALL directory already exists on this drive.
echo Delete this directory and all files in it, then try installing again.
goto errorDone
rem --- goto here after an error is detected, to print a message and exit.
:errorDone
echo
echo KINGS OF THE BEACH was not installed correctly.
:done